makefile 2.03 KB
Newer Older
moh_lo's avatar
moh_lo committed
1
EXEC = main.out
maitre's avatar
maitre committed
2
3
CPPFLAGS += -DUNIX_OS -Ialexyacc/include/ -g  -Wno-deprecated
CPPC = g++ 
moh_lo's avatar
moh_lo committed
4
5
LDFLAGS = 

moh_lo's avatar
moh_lo committed
6

7

maitre's avatar
maitre committed
8
$(EXEC):EaseaSym.o EaseaParse.o EaseaLex.o alexyacc/libalex.a EaseaYTools.o
moh_lo's avatar
moh_lo committed
9
	$(CPPC) $(CPPFLAGS) $(LDFLAGS) $^ -o $@
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
	#
	# Congratulations !  It looks like you compiled EASEA successfully.
	# 
	# Generated files depend on libboost-program-options,
	# be sure that the development version of this library 
	# is installed on you system :
	#       For example, on ubuntu :
	#       sudo apt-get install libboost-program-options-dev
	#
	# Easea could be moved to a bin directory or included in the PATH 
	# as long as users have defined a EZ_PATH environment variable 
	# pointing to the tpl/ directory.
	# To do this temporarly type : 
	#       export EZ_PATH=`pwd`/tpl/
	# Or define EZ_PATH in your bashrc file (for bash users) :
	#       For example :
	#       export EZ_PATH=/path/to/easea/directory/tpl/
	#
	# Otherwise you can use easea from this directory by typing :
	#       For example : 
	#       ./easea examples/weierstrass/weierstrass.ez
	# Go to the taget directory and type make
	#
	# Thanks for using EASEA.
	#

# $(EXEC):EaseaSym.o EaseaParse.o EaseaLex.o alexyacc/libalex.so
# 	$(CPPC) $(CPPFLAGS) $(LDFLAGS) $^ -o $@
moh_lo's avatar
moh_lo committed
38
39


40
41
# $(EXEC)_bin:EaseaSym.o EaseaParse.o EaseaLex.o 
# 	$(CPPC) $(CPPFLAGS) $(LDFLAGS) $^ -o $@ -lalex
maitre's avatar
rc-2    
maitre committed
42
43
44



maitre's avatar
maitre committed
45
EaseaParse.o: EaseaParse.cpp EaseaLex.cpp
maitre's avatar
maitre committed
46
47
	$(CPPC) $(CPPFLAGS) $< -o $@ -c

moh_lo's avatar
moh_lo committed
48
49
50
%.o:%.cpp
	$(CPPC) $(CPPFLAGS) -c -o $@ $<

moh_lo's avatar
moh_lo committed
51
#compile library for alex and ayacc unix version
moh_lo's avatar
moh_lo committed
52
53
54
alexyacc/libalex.so:alexyacc/*.cpp
	cd alexyacc && make libalex.so

55
56
57
58
alexyacc/libalex.a:alexyacc/*.cpp
	cd alexyacc && make libalex.a


moh_lo's avatar
moh_lo committed
59
clean:
maitre's avatar
rc-2    
maitre committed
60
	rm -f *.o $(EXEC) $(EXEC)_bin
moh_lo's avatar
moh_lo committed
61
62
	cd alexyacc && make clean

maitre's avatar
maitre committed
63
install:$(EXEC)
64
	sudo cp $< /usr/bin/dev-easea
maitre's avatar
maitre committed
65

Frederic's avatar
Frederic committed
66
67
realclean: clean
	rm -f EaseaParse.cpp EaseaParse.h EaseaLex.cpp EaseaLex.h
moh_lo's avatar
moh_lo committed
68

moh_lo's avatar
moh_lo committed
69

maitre's avatar
maitre committed
70
EaseaParse.cpp: EaseaParse.y
Frederic's avatar
Frederic committed
71
	wine /home/maitre/.wine/drive_c/Program\ Files/Parser\ Generator/BIN/ayacc.exe $< -Tcpp -d
maitre's avatar
maitre committed
72
73

EaseaLex.cpp: EaseaLex.l
Frederic's avatar
Frederic committed
74
	wine /home/maitre/.wine/drive_c/Program\ Files/Parser\ Generator/BIN/ALex.exe $< -Tcpp -i