-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
60 lines (40 loc) · 1.47 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
ROOT= .
include $(ROOT)/makefile-config
DOCDIR= doc
SRCDIR= src
CLASSDIR= classes
LIBDIR= lib
LOGDIR= log
ifeq (${OS},Windows)
COLON= ;
else
COLON= :
endif
NAMESPACE= org.zoolu
NAMESPACE_PATH= org/zoolu
#SIP_PACKAGES= address header message provider transaction dialog
SIP_PACKAGES= $(notdir $(wildcard $(SRCDIR)/$(NAMESPACE_PATH)/sip/*))
#%.class: %.java
# $(JAVAC) $<
# **************************** Default action **************************
default:
# $(MAKE) mjsip
@echo make: select the package you want to build
# ******************************** Cleans ******************************
clean:
# cd $(CLASSDIR); $(RM) *.class; cd..
@echo make clean: to be implemented..
cleanlogs:
cd $(LOGDIR); $(RM) *.log; cd..
# ****************************** Builds all ****************************
all:
$(MAKE) conetcontroller
# ************************ Builds conetcontroller ***********************
conetcontroller:
@echo ------------------ MAKING CONET CONTROLLER ------------------
cd $(SRCDIR); \
$(JAVAC) -classpath "../$(CLASSDIR)$(COLON)../$(LIBDIR)/floodlight.jar$(COLON)../$(LIBDIR)/json-simple-1.1.1.jar$(COLON)../$(LIBDIR)/conet.jar" -d ../$(CLASSDIR) org/zoolu/tools/*.java org/zoolu/net/*.java org/zoolu/net/message/*.java local/conet/*.java; \
cd ..
cd $(CLASSDIR); \
$(JAR) -cf ../$(LIBDIR)/conetcontroller.jar org local -C ../resources META-INF/services/net.floodlightcontroller.core.module.IFloodlightModule -C ../resources floodlightdefault.properties; \
cd ..