-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
executable file
·90 lines (56 loc) · 1.32 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Generated by Eclipse GCJ Builder
# http://gcjbuilder.sf.net
#global targets
ALL: main
all: main
#gcj variable
GCJ=gcj $(OPTLEVEL) $(DEBUGLEVEL) $(COMPILER_OPTIONS)
#binary output folder
BINOUT= release
#compiler options
COMPILER_OPTIONS=
#linker options
LINKER_OPTIONS=
#object list
OBJ=src/Encrypter.o
#custom objects
CUSTOM_OBJ=
#jar objects
CPOBJ=
#jar so
CPSO=
#project classpath
CP="--classpath=./src/;"
#main class (or so output)
MAINCLASS=--main=Encrypter
#binary name (exe or so)
BIN=$(BINOUT)/Vic_Cipher_Encrypter
#library path list
LIBRARYPATH=-L$(BINOUT)
#libraries (so) list
LIBRARIES=
#resource objects list
RESOB=
#compiler optimization level
OPTLEVEL= -O3
#compiler debug level
DEBUGLEVEL= -g0
#object targets
%.o: %.java
$(GCJ) $(CP) -c $? -o $@
##################
#dummy targets (depend on config)
#classpath objects target
#classpath so target
#resource objects target
#################
#main target
main: setup $(CPOBJ) $(RESOB) $(OBJ) $(CPSO)
$(GCJ) $(LINKER_OPTIONS) $(MAINCLASS) $(CPOBJ) $(CUSTOM_OBJ) $(RESOB) $(OBJ) -o$(BIN) $(LIBRARYPATH) $(LIBRARIES) $(CPSO)
#setup output folders
setup:
mkdir -p $(BINOUT)/resource
#clean target
clean:
rm -f `find . -name "*.o"`
rm -r $(BINOUT)