## ## PDP1 Makefile ## FILE_EXT = ## EXEC= xview$(FILE_EXT) ## ## CC ## C compiler. Normally cc; is scc on Unicos. ## ## CFLAGS ## 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 ## 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. ## On Sun, use -Bstatic to avoid problems with differing versions of OS. ## Man cc for more information on flags. ## ## SYSTEM ## The type of system on which the code is compiled. The selection ## includes: SUN, DEC, IBM, or UNICOS. The dump files created by ## code are stored in the IEEE standard binary format. Since Sun OS ## and Unicos do NOT follow this format, the code has to read and ## write binary files according to the type of machine. ## ## ## Sun OS 4.1: CC = cc CFLAGS= SYSTEM= SUN LIBS = -lm -lX11 ## ## ULTRIX 4.2: # CC = cc # CFLAGS= # SYSTEM= DEC # LIBS = -lm -lX11 ## ## Unicos # CC = scc # CFLAGS= # SYSTEM= UNICOS # LIBS = -lm -lX11 -lnet ## ## VIEWOBJECTS= view.o \ fileio.o \ initwin.o \ ../xgrafix/xgrafix$(FILE_EXT).o ## ## $(EXEC): $(VIEWOBJECTS) $(CC) $(CFLAGS) -o $(EXEC) $(VIEWOBJECTS) $(LIBS) ## ## view.o: view.c view.h ../xgrafix/xgrafix.h $(CC) -c $(CFLAGS) view.c ## fileio.o: fileio.c $(CC) -c $(CFLAGS) -D$(SYSTEM) fileio.c ## initwin.o: initwin.c view.h ../xgrafix/xgrafix.h $(CC) -c $(CFLAGS) initwin.c