LFLAGS = -lXaw -lXmu -lXt -lXext -lX11 -lm INCX11 = -I/usr/include/X11 INCXAW = -I/usr/include/X11/Xaw LIBS = -L/usr/lib DEFINES = -D__STDC__ -D_INCLUDE_POSIX_SOURCE CFLAGS = $(DEFINES) $(INCX11) $(INCXAW) $(LIBS) CC = gcc all: xstuff.o actions.o pship.o editss xstuff.o: xstuff.c xstuff.h actions.h editss.h curnose.xbm currear.xbm pship.h\ curkill.xbm cursplit.xbm vars.h const.h curmis.xbm cureng.xbm actions.o: actions.c actions.h xstuff.h editss.h vars.h const.h pship.h pship.o: pship.c pship.h const.h vars.h editss: editss.c const.h editss.h actions.h xstuff.h actions.c xstuff.c pship.c $(CC) -O $(CFLAGS) -o editss pship.o xstuff.o actions.o editss.c $(LFLAGS)