# file: Makefile # author: MLehr # # Copyright (C) 1994 # by the Rector and Board of Visitors of # the University of Virginia # # for more information: # Sanghyuk Son # Department of Computer Science # School of Engineering and Applied Science # University of Virginia # Charlottesville, VA 22903 # CSOURCES = ClockSyncClient.c COBJECTS = $(CSOURCES:.c=.o) SSOURCES = ClockSyncServer.c SOBJECTS = $(SSOURCES:.c=.o) INCLUDES = # LIBS = -lnetname -lmach_rt LIBINCLUDES = # # NOTE: the order of the conditional macros is important! CC = gcc all := CFLAGS = -O2 $(INCLUDES) debug := CFLAGS = -ansi -g $(INCLUDES) -Wall # link editor all := LDFLAGS = -s $(LIBINCLUDES) $(LIBS) debug := LDFLAGS = $(LIBINCLUDES) $(LIBS) all debug: csclient csserver csclient: $(COBJECTS) $(CC) -o csclient $(COBJECTS) $(LDFLAGS) csserver: $(SOBJECTS) $(CC) -o csserver $(SOBJECTS) $(LDFLAGS) clean: deletions csclient csserver @ echo 'all object files recompiled.' deletions: @ echo 'deleting all object files...' ; \ /bin/rm -f *.o *~ deps: deletions @ echo 'constructing dependencies...' ; \ mkdep $(INCLUDES) *.c ; \ echo 'done.' # DO NOT DELETE THIS LINE -- mkdep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. ClockSyncClient.o: MachUseful.h ClockSyncClient.o: ClockSyncClient.c ClockSyncClient.o: ClockSync.h ClockSyncServer.o: MachUseful.h ClockSyncServer.o: ClockSync.h ClockSyncServer.o: ClockSyncServer.c # IF YOU PUT ANYTHING HERE IT WILL GO AWAY