-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
45 lines (36 loc) · 1.33 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
39
40
41
42
43
44
45
# /*-----------------------------------------------------------------------*/
# /* WAMCC INRIA Rocquencourt - CLoE Project */
# /* Daniel Diaz */
# /* */
# /* Makefile */
# /*-----------------------------------------------------------------------*/
# you can change the following paths
ROOTPATH= $(HOME)/$(COMPILER)
INCPATH = $(ROOTPATH)/include
LIBPATH = $(ROOTPATH)/lib
BINPATH = $(ROOTPATH)/bin
# do not change anything else
COMPILER= wamcc
WGCC = w_gcc
BMF = bmf_$(COMPILER)
EXECS = $(WGCC) $(COMPILER) $(BMF) hex2pl pl2hex
install:
cd src; echo $(ROOTPATH);\
make $(WGCC) COMPILER=$(COMPILER) INCPATH=$(INCPATH) \
LIBPATH=$(LIBPATH) WGCC=$(WGCC)
cd Builtin; \
make COMPILER=$(COMPILER) WGCC=../src/$(WGCC)
cd src; \
make COMPILER=$(COMPILER) INCPATH=$(INCPATH) \
LIBPATH=$(LIBPATH) WGCC=$(WGCC)
-mkdir -p $(INCPATH)
-mkdir -p $(LIBPATH)
-mkdir -p $(BINPATH)
cp src/*.h $(INCPATH)
rm $(INCPATH)/wamcc*.h
cp src/*.a $(LIBPATH)
ranlib $(LIBPATH)/*.a
cp src/$(WGCC) src/$(COMPILER) src/$(BMF) src/hex2pl src/pl2hex $(BINPATH)
clean:
cd src; make clean
cd Builtin; make clean