besim/Makefile CC = gcc LD = gcc LDFLAGS = LIBS = CFLAGS = DEST = . EXTHDRS = MAKEFILE = Makefile PRINT = pr PROGRAM = besim SYSHDRS = usage:; @echo "usage: make [] " @echo " make " @echo " make fcgi TARGET='clean all install'" fcgi:; @echo ' $@' @cat Makefiles/MakeIncl.fcgi.`uname -s` Makefiles/Makefile.fcgi > Makefiles/Makefile.fcgi.`uname -s` @make -f Makefiles/Makefile.fcgi.`uname -s` $(TARGET) @echo "done" isapi:; @echo ' $@' @cat Makefiles/MakeIncl.isapi.`uname -s` Makefiles/Makefile.isapi > Makefiles/Makefile.isapi.`uname -s` @make -f Makefiles/Makefile.isapi.`uname -s` $(TARGET) @echo "done" zisapi:; @echo ' $@' @cat Makefiles/MakeIncl.zisapi.`uname -s` Makefiles/Makefile.zisapi > Makefiles/Makefile.zisapi.`uname -s` @make -f Makefiles/Makefile.zisapi.`uname -s` $(TARGET) @echo "done" nsapi:; @echo ' $@' @cat Makefiles/MakeIncl.nsapi.`uname -s` Makefiles/Makefile.nsapi > Makefiles/Makefile.nsapi.`uname -s` @make -f Makefiles/Makefile.nsapi.`uname -s` $(TARGET) @echo "done" clean:; @rm -f *.o core md5/*.o clobber:; @rm -f *.o $(PROGRAM)_fcgi.fcgi $(PROGRAM)_zisapi.api $(PROGRAM)_nsapi.so core tags md5/*.o echo:; @echo $(HDRS) $(SRCS) besim/Makefiles/Makefile.isapi EXTHDRS = HDRS = besim_banking.h \ besim_common.h \ besim_ecommerce.h \ besim_isapi.h \ besim_supportsite.h \ randomtext.h \ md5/global.h \ md5/md5.h INSTALL = install MAKEFILE = Makefile OBJS = besim_banking.o \ besim_ecommerce.o \ besim_isapi.o \ besim_supportsite.o \ randomtext.o MD5_OBJS = md5/md5c.o PRINT = pr PROGRAM = besim_isapi SRCS = besim_banking.c \ besim_ecommerce.c \ besim_isapi.c \ besim_supportsite.c \ randomtext.c \ md5/md5c.c SYSHDRS = all: $(PROGRAM) $(PROGRAM): $(OBJS) $(MD5_OBJS) @echo "Linking $(PROGRAM) ..." @echo '@$(LD) -o $(PROGRAM) $(OBJS) $(MD5_OBJS) $(LIBS) $(LDFLAGS)' @$(LD) -o $(PROGRAM) $(OBJS) $(MD5_OBJS) $(LIBS) $(LDFLAGS) @echo "done" clean:; @rm -f $(OBJS) core $(MD5_OBJS) clobber:; @rm -f $(OBJS) $(PROGRAM) core tags $(MD5_OBJS) depend:; @mkmf -f $(MAKEFILE) ROOT=$(ROOT) echo:; @echo $(HDRS) $(SRCS) index:; @ctags -wx $(HDRS) $(SRCS) install: $(PROGRAM) @echo Installing $(PROGRAM) in $(DEST) @-strip $(PROGRAM) @if [ $(DEST) != . ]; then \ (touch $(DEST)/$(PROGRAM); mv -f $(DEST)/$(PROGRAM) $(DEST)/$(PROGRAM)_`date +\%y\%m\%d\%H\%M\%S`; $(INSTALL) $(INSTALLARGS)); fi print:; @$(PRINT) $(HDRS) $(SRCS) tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) update: $(DEST)/$(PROGRAM) $(MD5_OBJS): @echo ' $@' cd md5; make md5c.o CFLAGS="$(MD5_CFLAGS)" besim/Makefiles/MakeIncl.isapi.Linux ROCK_HOME = /usr/local/httpd-140/ CC = gcc LD = gcc LDFLAGS = -shared -fPIC -O3 LIBS = -lm DEFS = -DUSE_MMAP -DUSE_32BIT_UINT4 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT OPTIMIZE = -fomit-frame-pointer -O3 -fPIC -pipe -m64 INCLUDES = -I$(ROCK_HOME)/include -I./md5 -I./ CFLAGS = $(DEFS) $(INCLUDES) $(OPTIMIZE) MD5_CFLAGS = $(OPTIMIZE) -DUSE_32BIT_UINT4 DEST = ./ INSTALLARGS = -v $(PROGRAM) $(DEST) SHELL = /bin/sh