root/trunk/makefile

Revision 1858, 5.2 KB (checked in by Dylan, 4 months ago)

unxsVZ removing vzmigrate temp error job queue status.

  • Property svn:keywords set to id
Line 
1#
2#FILE
3#       unxsVZ/makefile
4#       $Id$
5#AUTHOR/LEGAL
6#       (C) 2001-2009 Gary Wallis for Unixservice. GPLv2 license applies.
7#
8#NOTES
9#       We only develop and test on Linux CentOS-5 and distribute via yum and rpm.
10#       Feel free to repackage for your OS and let us know.
11#
12
13CFLAGS=-Wall
14LIBS=-L/usr/lib/mysql -L/usr/lib/openisp -lmysqlclient -lz -lcrypt -lm -lssl -lucidr -ltemplate
15CGIDIR=cgi-bin
16#CGIDIR=cgi-bin/alpha
17
18all: unxsVZ.cgi
19
20unxsVZ.cgi: tdatacenter.o tnode.o tcontainer.o tproperty.o ttype.o tostemplate.o tnameserver.o \
21        tsearchdomain.o tconfig.o tip.o tgrouptype.o tgroup.o tgroupglue.o tclient.o tauthorize.o \
22        ttemplate.o ttemplateset.o ttemplatetype.o tlog.o tlogtype.o tlogmonth.o tmonth.o tglossary.o \
23        tjob.o tjobstatus.o tstatus.o tconfiguration.o  jobqueue.o glossary.o main.o cgi.o mysqlconnect.o
24        cc tdatacenter.o tnode.o tcontainer.o tproperty.o ttype.o tostemplate.o tnameserver.o \
25                tsearchdomain.o tconfig.o tip.o tgrouptype.o tgroup.o tgroupglue.o tclient.o \
26                tauthorize.o ttemplate.o ttemplateset.o ttemplatetype.o tlog.o tlogtype.o \
27                tlogmonth.o tmonth.o tglossary.o tjob.o tjobstatus.o tstatus.o tconfiguration.o \
28                jobqueue.o glossary.o main.o cgi.o mysqlconnect.o -o unxsVZ.cgi $(LIBS)
29
30#new standalone job queue processor
31#needs new (and yet to be be developed) libunxsvz
32unxsvz: jobqueue.o unxsvz.o mysqlconnect.o
33        cc jobqueue.o unxsvz.o mysqlconnect.o -o unxsVZ.cgi $(LIBS) -lunxsvz
34
35unxsvz.o: unxsvz.c mysqlrad.h local.h
36        cc -c unxsvz.c -o unxsvz.o $(CFLAGS)
37
38mysqlconnect.o: mysqlconnect.c mysqlrad.h local.h
39        cc -c mysqlconnect.c -o mysqlconnect.o $(CFLAGS)
40
41tdatacenter.o: tdatacenter.c mysqlrad.h language.h tdatacenterfunc.h local.h
42        cc -c tdatacenter.c -o tdatacenter.o $(CFLAGS)
43
44tnode.o: tnode.c mysqlrad.h language.h tnodefunc.h local.h
45        cc -c tnode.c -o tnode.o $(CFLAGS)
46
47tcontainer.o: tcontainer.c mysqlrad.h language.h tcontainerfunc.h local.h
48        cc -c tcontainer.c -o tcontainer.o $(CFLAGS)
49
50tproperty.o: tproperty.c mysqlrad.h language.h tpropertyfunc.h local.h
51        cc -c tproperty.c -o tproperty.o $(CFLAGS)
52
53ttype.o: ttype.c mysqlrad.h language.h ttypefunc.h local.h
54        cc -c ttype.c -o ttype.o $(CFLAGS)
55
56tostemplate.o: tostemplate.c mysqlrad.h language.h tostemplatefunc.h local.h
57        cc -c tostemplate.c -o tostemplate.o $(CFLAGS)
58
59tnameserver.o: tnameserver.c mysqlrad.h language.h tnameserverfunc.h local.h
60        cc -c tnameserver.c -o tnameserver.o $(CFLAGS)
61
62tsearchdomain.o: tsearchdomain.c mysqlrad.h language.h tsearchdomainfunc.h local.h
63        cc -c tsearchdomain.c -o tsearchdomain.o $(CFLAGS)
64
65tconfig.o: tconfig.c mysqlrad.h language.h tconfigfunc.h local.h
66        cc -c tconfig.c -o tconfig.o $(CFLAGS)
67
68tip.o: tip.c mysqlrad.h language.h tipfunc.h local.h
69        cc -c tip.c -o tip.o $(CFLAGS)
70
71tgrouptype.o: tgrouptype.c mysqlrad.h language.h tgrouptypefunc.h local.h
72        cc -c tgrouptype.c -o tgrouptype.o $(CFLAGS)
73
74tgroup.o: tgroup.c mysqlrad.h language.h tgroupfunc.h local.h
75        cc -c tgroup.c -o tgroup.o $(CFLAGS)
76
77tgroupglue.o: tgroupglue.c mysqlrad.h language.h tgroupgluefunc.h local.h
78        cc -c tgroupglue.c -o tgroupglue.o $(CFLAGS)
79
80tclient.o: tclient.c mysqlrad.h language.h tclientfunc.h local.h
81        cc -c tclient.c -o tclient.o $(CFLAGS)
82
83tauthorize.o: tauthorize.c mysqlrad.h language.h tauthorizefunc.h local.h
84        cc -c tauthorize.c -o tauthorize.o $(CFLAGS)
85
86ttemplate.o: ttemplate.c mysqlrad.h language.h ttemplatefunc.h local.h
87        cc -c ttemplate.c -o ttemplate.o $(CFLAGS)
88
89ttemplateset.o: ttemplateset.c mysqlrad.h language.h ttemplatesetfunc.h local.h
90        cc -c ttemplateset.c -o ttemplateset.o $(CFLAGS)
91
92ttemplatetype.o: ttemplatetype.c mysqlrad.h language.h ttemplatetypefunc.h local.h
93        cc -c ttemplatetype.c -o ttemplatetype.o $(CFLAGS)
94
95tlog.o: tlog.c mysqlrad.h language.h tlogfunc.h local.h
96        cc -c tlog.c -o tlog.o $(CFLAGS)
97
98tlogtype.o: tlogtype.c mysqlrad.h language.h tlogtypefunc.h local.h
99        cc -c tlogtype.c -o tlogtype.o $(CFLAGS)
100
101tlogmonth.o: tlogmonth.c mysqlrad.h language.h tlogmonthfunc.h local.h
102        cc -c tlogmonth.c -o tlogmonth.o $(CFLAGS)
103
104tmonth.o: tmonth.c mysqlrad.h language.h tmonthfunc.h local.h
105        cc -c tmonth.c -o tmonth.o $(CFLAGS)
106
107tglossary.o: tglossary.c mysqlrad.h language.h tglossaryfunc.h local.h
108        cc -c tglossary.c -o tglossary.o $(CFLAGS)
109
110tjob.o: tjob.c mysqlrad.h language.h tjobfunc.h local.h
111        cc -c tjob.c -o tjob.o $(CFLAGS)
112
113tjobstatus.o: tjobstatus.c mysqlrad.h language.h tjobstatusfunc.h local.h
114        cc -c tjobstatus.c -o tjobstatus.o $(CFLAGS)
115
116tstatus.o: tstatus.c mysqlrad.h language.h tstatusfunc.h local.h
117        cc -c tstatus.c -o tstatus.o $(CFLAGS)
118
119tconfiguration.o: tconfiguration.c mysqlrad.h language.h tconfigurationfunc.h local.h
120        cc -c tconfiguration.c -o tconfiguration.o $(CFLAGS)
121
122glossary.o : glossary.c mysqlrad.h local.h
123        cc -c glossary.c -o glossary.o $(CFLAGS)
124
125main.o: main.c mysqlrad.h mainfunc.h language.h local.h
126        cc -c main.c -o main.o $(CFLAGS)
127
128cgi.o: cgi.h cgi.c
129        cc -c cgi.c -o cgi.o $(CFLAGS)
130
131jobqueue.o: jobqueue.c mysqlrad.h local.h
132        cc -c jobqueue.c -o jobqueue.o $(CFLAGS)
133
134local.h: local.h.default
135        @ if [ ! -f local.h ];then cp -i local.h.default local.h; fi
136
137clean:
138        rm -f *.o
139
140install-all: unxsVZ.cgi unxsvz
141        install -s unxsVZ.cgi /var/www/unxs/$(CGIDIR)/unxsVZ.cgi
142        install -s unxsvz /usr/sbin/unxsvz
143        @ rm unxsVZ.cgi
144        @ rm unxsvz
145
146install: unxsVZ.cgi
147        install -s unxsVZ.cgi /var/www/unxs/$(CGIDIR)/unxsVZ.cgi
148        @ rm unxsVZ.cgi
Note: See TracBrowser for help on using the browser.