# makefile for SEXY # usage: "make [-f MAKEFILE] [TARGET] ..." # 29/7/2004 Taka CC=gcc IN=/usr/X11R6/include LI=/usr/X11R6/lib HD=sexy.h OB1=${HD:.h=.o} OB2=test_drive.o TA1=sx.e TA2=test.e # when the designated target is "all" or none all:$(TA1) $(TA2) # suffics rule .c.o:;$(CC) -c $*.c -I $(IN) # required targets $(TA1):$(OB1) $(CC) -lX11 -L $(LI) -lm $(OB1) -o $(TA1) $(TA1):$(HD) $(CC) -c $(SC1) -I $(IN) $(TA2):$(OB2) $(CC) -lX11 -L $(LI) -lm $(OB2) -o $(TA2) $(TA2):$(HD) $(CC) -c $(SC2) -I $(IN) # when the designated target is "clean" clean:;rm -f $(OB1) $(TA1) $(OB2) $(TA2) ###################################################### # __________________ __ # # / \__ __/ __/ # # \_ ______ \__/ __/ # # \____ | __/ \__ __/ # # \_ |_______/ \___/ # # \ | | # # _________________/ |______ | # # # # Splendid and Enormous XY plotter # # # ######################################################