abCalc/Makefile

35 lines
590 B
Makefile
Raw Normal View History

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
.INCLUDE: "Make.engine"
CFLAGS=-D ABCALC_GSOS
2013-07-25 18:33:38 +00:00
$(SHELL_NAME): fixtype $(SHELL_OBJS)
occ -o $(SHELL_NAME) $(SHELL_OBJS)
$(NDA_NAME): fixtype $(NDA_OBJS)
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
cp -p rm -f *.root
cp -p rm -f expr/*.root
cp -p rm -f ops/*.root
fixtype:
chtyp -l CC *.c *.h
chtyp -l CC expr/*.c expr/*.h
chtyp -l CC ops/*.c ops/*.h
%.o: %.c
occ $(CFLAGS) -c $<