--- Makefile 2010-08-07 09:06:42.000000000 -0400
+++ Makefile 2017-01-26 09:45:38.000000000 -0500
# This Makefile supports Atari ST and all Unix versions.
# The installation prefix
# This version is needed for the dist target
# On Solaris, use -DSYSV=1 -DNEED_ALPHASORT and set SYSVOBJ=scandir.o
# (See the Sysvarcstuf shar file)
#SYSTEM = -DGEMDOS=1 -fstrength-reduce -fomit-frame-pointer -finline-functions -fdefer-pop -mpcrel
# For MWC 3.0 on the Atari ST, use:
#CFLAGS = -VCOMPAC -VPEEP
-CFLAGS = $(OPT) $(SYSTEM)
+CFLAGS += $(OPT) $(SYSTEM) $(CPPFLAGS)
# GNU's gcc is very nice, if you've got it. Otherwise just cc.
#CC = cgcc -mshort -mbaserel
# tmclock is only needed on Unix systems...
all: arc$(PROG) marc$(PROG)
arc$(PROG): $(OBJS) $(TMCLOCK)
- $(CC) $(OPT) -o arc$(PROG) $(OBJS) $(TMCLOCK) $(LIBS)
+ $(CC) $(OPT) -o arc$(PROG) $(OBJS) $(TMCLOCK) $(LIBS) $(LDFLAGS)
marc$(PROG): $(MOBJ) $(TMCLOCK)
- $(CC) $(OPT) -o marc$(PROG) $(MOBJ) $(TMCLOCK) $(LIBS)
+ $(CC) $(OPT) -o marc$(PROG) $(MOBJ) $(TMCLOCK) $(LIBS) $(LDFLAGS)
rm -f *.o arc$(PROG) marc$(PROG)
install -s -m 0755 -D marc $(DESTDIR)$(PREFIX)/bin/marc
install -m 0644 -D arc.1 $(DESTDIR)$(PREFIX)/share/man/man1/arc.1
install -m 0644 -D marc.1 $(DESTDIR)$(PREFIX)/share/man/man1/marc.1
\ No newline at end of file