2013-07-25 18:33:38 +00:00
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
# By: Jeremy Rand
|
|
|
|
#
|
2013-07-24 13:45:33 +00:00
|
|
|
|
2013-07-25 18:33:38 +00:00
|
|
|
SHELL_NAME=abCalc
|
|
|
|
NDA_NAME=abCalcNDA
|
|
|
|
|
|
|
|
all: $(SHELL_NAME) $(NDA_NAME)
|
2013-07-24 13:45:33 +00:00
|
|
|
|
2013-07-25 14:42:02 +00:00
|
|
|
.INCLUDE: "Make.engine"
|
2013-07-24 14:30:44 +00:00
|
|
|
|
2013-07-25 16:50:12 +00:00
|
|
|
CFLAGS=-D ABCALC_GSOS
|
|
|
|
|
2013-07-26 04:55:28 +00:00
|
|
|
$(SHELL_NAME): $(SHELL_OBJS)
|
2013-07-25 18:33:38 +00:00
|
|
|
occ -o $(SHELL_NAME) $(SHELL_OBJS)
|
|
|
|
|
2013-07-26 04:55:28 +00:00
|
|
|
$(NDA_NAME): $(NDA_OBJS) $(NDA_NAME).r
|
|
|
|
cp -f $(NDA_NAME).r $(NDA_NAME)
|
2013-07-25 18:44:14 +00:00
|
|
|
occ -o $(NDA_NAME) $(NDA_OBJS)
|
|
|
|
chtyp -t nda $(NDA_NAME)
|
2013-07-24 13:45:33 +00:00
|
|
|
|
2013-07-26 04:55:28 +00:00
|
|
|
abCalcMain.o: abCalcMain.c
|
|
|
|
occ $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
$(NDA_NAME).o: $(NDA_NAME).c
|
|
|
|
occ $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2013-07-24 13:45:33 +00:00
|
|
|
clean:
|
2013-07-25 18:33:38 +00: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 15:21:21 +00:00
|
|
|
cp -p rm -f *.root
|
|
|
|
cp -p rm -f expr/*.root
|
|
|
|
cp -p rm -f ops/*.root
|
|
|
|
|
2013-07-26 04:55:28 +00: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 15:21:21 +00:00
|
|
|
chtyp -l CC expr/*.c expr/*.h
|
|
|
|
chtyp -l CC ops/*.c ops/*.h
|
2013-07-25 14:42:02 +00:00
|
|
|
|
|
|
|
%.o: %.c
|
2013-07-26 04:55:28 +00:00
|
|
|
occ $(CFLAGS) -c -o $@ $<
|
2013-07-25 18:44:14 +00:00
|
|
|
|
|
|
|
%.r: %.rez
|
2013-07-26 04:55:28 +00:00
|
|
|
occ -o $@ $<
|