# Makefile for cslib/xwindows directory # Last modified on Tue Aug 2 10:18:12 1994 by eroberts #**************************************************************** CONTENTS = \ Makefile README exception.c exception.h extgraph.h gcalloc.h \ genlib.c genlib.h glibrary.c glibrary.h graphics.c graphics.h \ random.c random.h simpio.c simpio.h strlib.c strlib.h \ xcompat.c xcompat.h xdisplay.c xdisplay.h xmanager.c \ xmanager.h OBJECTS = \ genlib.o \ exception.o \ strlib.o \ simpio.o \ random.o \ graphics.o \ xmanager.o \ xdisplay.o \ xcompat.o \ glibrary.o CSLIB = cslib.a SHAR = ../shar/xwindows.shar #CC = gcc CC = cc -DSYSV CFLAGS = -g -I. $(CCFLAGS) # *************************************************************** # Entry to bring the package up to date # The "make all" entry should be the first real entry all: $(CSLIB) # *************************************************************** # Standard entries to remove files from the directories # tidy -- eliminate unwanted files # scratch -- delete derived files in preparation for rebuild tidy: rm -f ,* .,* *~ core a.out *.err scratch: tidy rm -f *.o *.a # *************************************************************** # C compilations genlib.o: genlib.c genlib.h exception.h gcalloc.h $(CC) $(CFLAGS) -c genlib.c exception.o: exception.c exception.h genlib.h $(CC) $(CFLAGS) -c exception.c strlib.o: strlib.c strlib.h genlib.h $(CC) $(CFLAGS) -c strlib.c simpio.o: simpio.c simpio.h strlib.h genlib.h $(CC) $(CFLAGS) -c simpio.c random.o: random.c random.h genlib.h $(CC) $(CFLAGS) -c random.c graphics.o: graphics.c graphics.h extgraph.h xmanager.h xcompat.h \ glibrary.h genlib.h gcalloc.h simpio.h strlib.h $(CC) $(CFLAGS) -c graphics.c xmanager.o: xmanager.c xmanager.h xdisplay.h xcompat.h glibrary.h \ genlib.h exception.h simpio.h $(CC) $(CFLAGS) -c xmanager.c xdisplay.o: xdisplay.c xdisplay.h xmanager.h glibrary.h genlib.h strlib.h $(CC) $(CFLAGS) -c xdisplay.c xcompat.o: xcompat.c xcompat.h $(CC) $(CFLAGS) -c xcompat.c glibrary.o: glibrary.c glibrary.h genlib.h $(CC) $(CFLAGS) -c glibrary.c # *************************************************************** # Entry to reconstruct the library archive $(CSLIB): $(OBJECTS) -rm -f $(CSLIB) ar csr $(CSLIB) $(OBJECTS) # ranlib $(CSLIB) # *************************************************************** # Entries to construct a shar file of the entire contents shar: $(SHAR) $(SHAR): $(CONTENTS) shar $(CONTENTS) > $(SHAR)