LIBLOGGING_SRC = beepchannel.c beepframe.c beepmessage.c beepprofile.c \ beepsession.c sockets.c srAPI.c namevaluetree.c stringbuf.c \ beepsession-lstn.c lstnprof-3195raw.c beeplisten.c srAPI-lstn.c \ syslogmessage.c oscalls.c clntprof-3195raw.c clntprof-3195cooked.c \ lstnprof-3195cooked.c srUtils.c LIBLOGGING_OBJ = $(LIBLOGGING_SRC:.c=.o) LIBLOGGING_H = beepchannel.h beepframe.h beepmessage.h beepprofile.h beepsession.h \ liblogging-config.h liblogging.h namevaluetree.h sockets.h srAPI.h \ namevaluetree.h stringbuf.h beeplisten.h lstnprof-3195raw.h \ syslogmessage.h oscalls.h clntprof-3195cooked.h clntprof-3195raw.h \ lstnprof-3195raw.h lstnprof-3195cooked.h srUtils.h TESTSRVR_SRC = testsrvr.c TESTSRVR_OBJ = $(TESTSRVR_SRC:.c=.o) TESTDRVR_SRC = testdrvr.c TESTDRVR_OBJ = $(TESTDRVR_SRC:.c=.o) # Uncomment to force gcc #CC=gcc # Uncomment for Solaris #EXTRA_LIBS = -lsocket -lnsl # Uncomment for debugging DEBUG = -g CFLAGS += $(DEBUG) all: liblogging.so testdrvr testsrvr liblogging.so: $(LIBLOGGING_OBJ) $(LIBLOGGING_H) ${CC} -fno-common -shared -o $@ $(LIBLOGGING_OBJ) testsrvr: liblogging.so $(TESTSRVR_OBJ) $(CC) -o $@ $(TESTSRVR_OBJ) -L. -llogging $(EXTRA_LIBS) testdrvr: liblogging.so $(TESTDRVR_OBJ) $(CC) -o $@ $(TESTDRVR_OBJ) -L. -llogging $(EXTRA_LIBS) clean: $(RM) liblogging.so $(RM) testdrvr $(RM) testsrvr $(RM) *.o $(RM) core # Special dependencies. sockets.o: sockets.c socketsUnix.c sockets.h oscalls.o: oscalls.c oscallsUnix.c oscalls.h