mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
34 lines
1.6 KiB
Plaintext
34 lines
1.6 KiB
Plaintext
--- Makefile.orig Wed May 19 04:07:25 1999
|
|
+++ Makefile Thu Jun 3 13:35:15 1999
|
|
@@ -1,11 +1,12 @@
|
|
# Makefile for analog 3.3
|
|
# Please read docs/Readme.html, or http://www.statslab.cam.ac.uk/~sret1/analog/
|
|
-CC = gcc # which compiler to use: eg cc, acc, gcc. NB Different
|
|
+CC ?= gcc # which compiler to use: eg cc, acc, gcc. NB Different
|
|
# compilers need different CFLAGS, e.g., -O instead of -O2.
|
|
-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
|
|
-DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOOPEN -DEBCDIC ...
|
|
+#DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOOPEN -DEBCDIC ...
|
|
+DEFS = -DPREFIX=\"$(PREFIX)\"
|
|
# ... -DNEED_STRCMP -DNEED_MEMMOVE -DNEED_STRTOUL ...
|
|
# ... -DNEED_DIFFTIME -DNEED_FLOATINGPOINT_H
|
|
# Solaris 2 (SunOS 5) might need DEFS = -DNEED_STRCMP
|
|
@@ -25,11 +26,13 @@
|
|
macinput.o macstuff.o output.o output2.o process.o settings.o \
|
|
sort.o tree.o utils.o win32.o
|
|
HEADERS = analhead.h analhea2.h macdir.h
|
|
-CFLAGS = $(CEXTRAFLAGS) $(DEFS) -D$(OS)
|
|
+CFLAGS += $(CEXTRAFLAGS) $(DEFS) -D$(OS)
|
|
|
|
# Form interface options:
|
|
FORMPROG = anlgform.cgi # The program that processes the data from the form
|
|
FORMSRC = anlgform.c # The source code for that program
|
|
+
|
|
+all: $(PROGRAM)
|
|
|
|
$(PROGRAM): $(OBJS) $(HEADERS) Makefile
|
|
$(CC) $(CEXTRAFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)
|