# SCCSID = "@(#)mlogwrite.mak 1.1\t01/17/97" # VERID = "VER 1.1" # # ============================================================================= # Andrea Whitlock, Mobius Software Services # whitlock@mobius-soft.com # # Bug reports, questions, and suggestions should be emailed to: # mobius@mobius-soft.com # # This software is provided under the terms of the GNU copyleft # (ftp://prep.ai.mit.edu/pub/gnu/COPYING-2.0), without a warranty # of any kind. Use at your own risk. # ============================================================================= # configure me ################################################################ # compiler # uncomment the following for hpux (assumes ansi compiler) #CC = cc # uncomment the following for linux and solaris CC = gcc # defines # uncomment the following 2 lines for hpux #BASE_DEFINES = -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_HPUX_SOURCE \ #-D_INCLUDE_XOPEN_SOURCE -D_INCLUDE_XOPEN_SOURCE_EXTENDED # define path to message log DEFINES = $(BASE_DEFINES) -DLOGFILE=\""/usr/local/etc/message.log\"" # flags for the compiler # uncomment the following 2 lines for hpux #CFLAGS = -Aa -c -g $(DEFINES) #LDFLAGS = -W l,+vnocompatwarnings # uncomment the following for linux and solaris CFLAGS = -ansi -c -g $(DEFINES) # configure me end ############################################################ # all object files OBJS = semutils.o logwrite.o mlogwrite.o # libraries needed to link LIBS = # targets all: mlogwrite mlogwrite: $(OBJS) mlogwrite.mak logwrite.h semutils.h $(CC) $(OBJS) $(LIBS) $(LDFLAGS) -omlogwrite # object file dependencies logwrite.o: logwrite.c logwrite.h $(CC) $(CFLAGS) logwrite.c semutils.o: semutils.c semutils.h $(CC) $(CFLAGS) semutils.c mlogwrite.o: mlogwrite.c logwrite.h semutils.h $(CC) $(CFLAGS) mlogwrite.c .DEFAULT: get $<