2013-07-25 13:33:38 -05:00
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
# By: Jeremy Rand
|
|
|
|
#
|
2013-07-24 08:45:33 -05:00
|
|
|
|
2013-07-25 13:33:38 -05:00
|
|
|
SHELL_NAME=abCalc
|
|
|
|
NDA_NAME=abCalcNDA
|
|
|
|
|
|
|
|
all: $(SHELL_NAME) $(NDA_NAME)
|
2013-07-24 08:45:33 -05:00
|
|
|
|
2013-07-25 09:42:02 -05:00
|
|
|
.INCLUDE: "Make.engine"
|
2013-07-24 09:30:44 -05:00
|
|
|
|
2013-07-25 11:50:12 -05:00
|
|
|
CFLAGS=-D ABCALC_GSOS
|
|
|
|
|
2013-07-25 23:55:28 -05:00
|
|
|
$(SHELL_NAME): $(SHELL_OBJS)
|
2013-07-25 13:33:38 -05:00
|
|
|
occ -o $(SHELL_NAME) $(SHELL_OBJS)
|
|
|
|
|
2013-07-25 23:55:28 -05:00
|
|
|
$(NDA_NAME): $(NDA_OBJS) $(NDA_NAME).r
|
|
|
|
cp -f $(NDA_NAME).r $(NDA_NAME)
|
2013-09-02 12:28:16 -04:00
|
|
|
occ -M -o $(NDA_NAME) $(NDA_OBJS) > $(NDA_NAME).map
|
2013-07-25 13:44:14 -05:00
|
|
|
chtyp -t nda $(NDA_NAME)
|
2013-07-24 08:45:33 -05:00
|
|
|
|
2013-07-25 23:55:28 -05:00
|
|
|
abCalcMain.o: abCalcMain.c
|
|
|
|
occ $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
$(NDA_NAME).o: $(NDA_NAME).c
|
|
|
|
occ $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2013-07-24 08:45:33 -05:00
|
|
|
clean:
|
2013-07-25 13:33:38 -05:00
|
|
|
cp -p rm -f $(SHELL_NAME) $(SHELL_OBJS) $(SHELL_NAME).root
|
|
|
|
cp -p rm -f $(NDA_NAME) $(NDA_OBJS) $(NDA_NAME).r $(NDA_NAME).root
|
2013-07-25 10:21:21 -05:00
|
|
|
cp -p rm -f *.root
|
2013-09-02 12:28:16 -04:00
|
|
|
cp -p rm -f *.map
|
2013-07-25 10:21:21 -05:00
|
|
|
cp -p rm -f expr/*.root
|
|
|
|
cp -p rm -f ops/*.root
|
|
|
|
|
2013-07-25 23:55:28 -05:00
|
|
|
fixfiles:
|
|
|
|
tr '\\012' '\\015' < abCalcNDA.defs > /tmp/blah
|
|
|
|
cp -f /tmp/blah abCalcNDA.defs
|
|
|
|
tr '\\012' '\\015' < abCalcNDA.rez > /tmp/blah
|
|
|
|
cp -f /tmp/blah abCalcNDA.rez
|
|
|
|
chtyp -l CC *.c *.h *.defs
|
|
|
|
chtyp -l REZ *.rez
|
2013-07-25 10:21:21 -05:00
|
|
|
chtyp -l CC expr/*.c expr/*.h
|
|
|
|
chtyp -l CC ops/*.c ops/*.h
|
2013-07-25 09:42:02 -05:00
|
|
|
|
|
|
|
%.o: %.c
|
2013-08-07 02:16:21 -04:00
|
|
|
occ $(CFLAGS) -r -c -o $@ $<
|
2013-07-25 13:44:14 -05:00
|
|
|
|
|
|
|
%.r: %.rez
|
2013-07-25 23:55:28 -05:00
|
|
|
occ -o $@ $<
|