1999-12-09 04:18:18 +00:00
|
|
|
--- Makefile.orig Sun Nov 14 17:17:21 1999
|
|
|
|
+++ Makefile Thu Dec 9 06:48:56 1999
|
1999-09-09 21:29:46 +00:00
|
|
|
@@ -1,11 +1,15 @@
|
1999-12-09 04:18:18 +00:00
|
|
|
# Makefile for analog 4.0
|
1998-08-18 21:12:12 +00:00
|
|
|
# Please read docs/Readme.html, or http://www.statslab.cam.ac.uk/~sret1/analog/
|
1999-06-03 20:37:27 +00:00
|
|
|
-CC = gcc # which compiler to use: eg cc, acc, gcc. NB Different
|
1999-12-09 04:18:18 +00:00
|
|
|
+#CC = gcc # which compiler to use: eg cc, acc, gcc. NB Different
|
1998-08-18 21:12:12 +00:00
|
|
|
# compilers need different CFLAGS, e.g., -O instead of -O2.
|
1999-05-19 21:33:55 +00:00
|
|
|
-CEXTRAFLAGS = -O2 # options, e.g. for optimisation or ANSI compilation.
|
|
|
|
+#CEXTRAFLAGS = -O2 # options, e.g. for optimisation or ANSI compilation.
|
|
|
|
# HP/UX cc requires CEXTRAFLAGS = -Aa (HP/UX 9) or ...
|
|
|
|
# -Ae (HP/UX 10); BS2000/OSD requires -XLLML -XLLMK
|
1999-12-09 04:18:18 +00:00
|
|
|
-DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOOPEN -DNOREGEX ...
|
|
|
|
+#DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOOPEN -DNOREGEX ...
|
1999-09-09 21:29:46 +00:00
|
|
|
+DEFS = -DANALOGDIR=\"$(PREFIX)/lib/analog/\" \
|
|
|
|
+ -DLOGFILE=\"/var/log/httpd-access.log\" \
|
|
|
|
+ -DIMAGEDIR=\"/images/\" \
|
|
|
|
+ -DDEFAULTCONFIGFILE=\"$(PREFIX)/etc/analog.cfg\"
|
1999-12-09 04:18:18 +00:00
|
|
|
# ... -DEBCDIC -DNEED_STRCMP -DNEED_MEMMOVE ...
|
|
|
|
# ... -DNEED_STRTOUL -DNEED_DIFFTIME -DNEED_FLOATINGPOINT_H
|
1999-05-19 21:33:55 +00:00
|
|
|
# Solaris 2 (SunOS 5) might need DEFS = -DNEED_STRCMP
|
1999-12-09 04:18:18 +00:00
|
|
|
@@ -25,7 +29,7 @@
|
|
|
|
input.o macinput.o macstuff.o output.o output2.o process.o settings.o \
|
1999-05-19 21:33:55 +00:00
|
|
|
sort.o tree.o utils.o win32.o
|
1999-12-09 04:18:18 +00:00
|
|
|
HEADERS = anlghead.h anlghea2.h anlghea3.h anlghea4.h macdir.h
|
1999-05-19 21:33:55 +00:00
|
|
|
-CFLAGS = $(CEXTRAFLAGS) $(DEFS) -D$(OS)
|
|
|
|
+CFLAGS += $(CEXTRAFLAGS) $(DEFS) -D$(OS)
|
|
|
|
|
1998-08-18 21:12:12 +00:00
|
|
|
$(PROGRAM): $(OBJS) $(HEADERS) Makefile
|
1999-05-19 21:33:55 +00:00
|
|
|
$(CC) $(CEXTRAFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)
|