## ## TEST Makefile (Revise according to your system.) ## FILE_EXT = ## EXEC= xtest$(FILE_EXT) ## CC = cc ## ## C compiler. Normally cc or gcc. ## CFLAGS= -g ## ## Flags used for compiling. -O for optimization, which is optional. ## If the X11 include files are not located in /usr/include/X11, you ## must specify the directory as a flag prefixed by -I. For instance, ## if the include files for X11 are located in /usr/local/include, the ## flag -I/usr/local/include must also be passed. ## LIBS = -L/usr/local/lib/tk4.0 -L/usr/local/lib/tcl7.4 -L/usr/X11/lib -L../src\ -lXGC240 -ltk4.0 -ltcl7.4 -lXpm -lX11 -lm ## Libraries and their directories used in loading. Normal is -lm and -lX11 ## for the Math and X11 libraries, which is NOT optional. On Unicos, -lnet ## is also used. If the X11 libraries are not located in /usr/lib/X11, you ## must also specify the directory as a flag prefixed by -L. For instance, ## if the include files for X11 are located in /usr/local/lib, the flag ## -L/usr/local/lib must also be passed. ## ## TESTOBJ= test.o ## ## all: $(TESTOBJ) $(EXEC) link: @rm xtest @make all .c.o: $(CC) -c $(CFLAGS) $*.c -I../src -I/usr/include $(EXEC): $(TESTOBJ) $(CC) $(CFLAGS) -o $(EXEC) $(TESTOBJ) $(LIBS) clean: @rm *.o *~ *.BAK