-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Top-level Makefile for Project 1.
#
# Targets:
# gmake [ default ] Compiles sources in src directory
# gmake check Compiles sources and runs tests. The parameter
# APYC indicates which compiler to run.
# gmake clean Removes unnecessary files, including those that
# are reproducible.
# gmake depend Compute makefile dependencies and store
# in .depend. Use this whenever you add a new
# source file or change an #include line.
# gmake really-clean Same as 'clean', also removes the file .depend.
#
APYC = $(shell echo `pwd`/apyc)
.PHONY: default compile check clean really-clean depend
default: compile
compile:
$(MAKE) -C src compile
check:
$(MAKE) -C tests APYC=$(APYC) check
clean:
$(RM) *~ apyc
$(MAKE) -C src clean
$(MAKE) -C tests clean
really-clean: clean
$(MAKE) -C src really-clean
$(MAKE) -C tests really-clean
depend:
$(MAKE) -C src depend