1 |
|
# DotGNU Project |
2 |
|
# |
3 |
|
# Authors: |
4 |
|
# Adam Ballai |
5 |
|
# Chris Smith |
6 |
|
# Nicolai P Guba |
7 |
|
# |
8 |
|
# $Id$ |
9 |
|
# |
10 |
|
CSCC = ${bindir}/cscc |
11 |
|
CSCC_OPTS = -Wall -g |
12 |
|
|
13 |
|
LPATH = -L../cslib/DotGNU/XmlRpc -L../cslib/System/Web -L../cslib/System/Web/Services |
14 |
|
LIBS = $(LPATH) -lSystem.Xml -lSystem.Web -lSystem.Web.Services -lDotGNU.XmlRpc |
15 |
|
|
16 |
|
PROGS = csdgmx.exe csws2client.exe |
17 |
|
SCRS= csdgmx csws2client dgeestart dgeestop dginstallws dgremovews dgadmin |
18 |
|
|
19 |
|
.PHONY: all directories install clean distclean |
20 |
|
|
21 |
|
%.exe: %.cs |
22 |
|
$(CSCC) $(CSCC_OPTS) -o $@ $< $(LIBS) |
23 |
|
|
24 |
|
|
25 |
|
all: $(PROGS) $(SCRS) |
26 |
|
|
27 |
|
directories: |
28 |
|
|
29 |
|
test.dll: test.cs |
30 |
|
$(CSCC) $(CSCC_OPTS) -shared -o test.dll test.cs $(LIBS) |
31 |
|
|
32 |
|
install: all |
33 |
|
@../mkinstalldirs ${bindir} |
34 |
|
$(INSTALL) $(foreach bin,$(PROGS),$(bin)) $(DESTDIR)${bindir} |
35 |
|
$(INSTALL) $(foreach bin,$(SCRS),$(bin)) $(DESTDIR)${bindir} |
36 |
|
$(INSTALL) dgeediagnose $(DESTDIR)${bindir} |
37 |
|
|
38 |
|
clean: |
39 |
|
rm -f $(foreach bin,$(PROGS),$(bin)) |
40 |
|
rm -f *.dll |
41 |
|
rm -rf *.obj |
42 |
|
|
43 |
|
distclean: clean |
44 |
|
rm -f $(foreach bin,$(SCRS),$(bin)) |
45 |
|
rm -f Makefile |
46 |
|
|