# -----------------------------------------------------------------------------
#
#	Makefile for wm.
#
# -----------------------------------------------------------------------------

# Uncomment these lines to use gcc.
#CC = gcc
#CFLAGS = -ansi -pedantic -Wall -DSHAPE

# Uncomment these lines to use SGI cc.
CC = cc
CFLAGS = -fullwarn -g -DSHAPE

# Add any strange libraries your system needs here.
LDFLAGS = -lXext -lX11

# -----------------------------------------------------------------------------

OFILES = wm.o manage.o mouse.o client.o cursor.o error.o disp.o shape.o \
	resource.o
HFILES = wm.h

# -----------------------------------------------------------------------------

all: wm

wm: $(OFILES)
	$(CC) $(CFLAGS) -o wm $(OFILES) $(LDFLAGS)

install: wm
	cp wm /usr/enh100/ubin/wm

$(OFILES): $(HFILES)

clean:
	rm -f wm *.o core
