1 |
|
# DotGNU Project |
2 |
|
# |
3 |
|
# Automake definitions |
4 |
|
# $Id$ |
5 |
|
# |
6 |
|
CSDGMX = ../tools/csdgmx.exe |
7 |
|
CSWS2CLIENT = ../tools/csws2client.exe |
8 |
|
ILRUN = $(bindir)/ilrun |
9 |
|
|
10 |
|
CSCC = $(bindir)/cscc |
11 |
|
CSCC_FLAGS = -Wall -g |
12 |
|
|
13 |
|
LPATH = -L../cslib/System/Web/Services -L../cslib/System/Web -L../cslib/DotGNU/XmlRpc |
14 |
|
LIBS = $(LPATH) -lSystem.Web -lSystem.Web.Services -lDotGNU.XmlRpc |
15 |
|
|
16 |
|
DLL = wstest.dll math.dll state.dll |
17 |
|
DGMX = wstest.dgmx math.dgmx state.dgmx |
18 |
|
CLIENTS = wstestClient.cs mathClient.cs stateClient.cs |
19 |
|
CLIENTS_DLL = wstestClient.dll mathClient.dll stateClient.dll |
20 |
|
|
21 |
|
INDEX_DIR = $(DESTDIR)$(REPOSDIR)/index |
22 |
|
DATA_DIR = $(DESTDIR)$(REPOSDIR)/data |
23 |
|
|
24 |
|
.PHONY: all dll dgmx clients-dll install install-dgmx install-dll clean distclean |
25 |
|
|
26 |
|
%.dgmx: %.dll |
27 |
|
$(ILRUN) $(LPATH) $(CSDGMX) $< |
28 |
|
|
29 |
|
%.dll: %.cs |
30 |
|
$(CSCC) $(CSCC_FLAGS) -shared -o $@ $< $(LIBS) |
31 |
|
|
32 |
|
%Client.cs: %.dll |
33 |
|
$(ILRUN) $(LPATH) $(CSWS2CLIENT) $< |
34 |
|
|
35 |
|
%Client.dll: %Client.cs |
36 |
|
$(CSCC) $(CSCC_FLAGS) -shared -o $@ $< $(LIBS) |
37 |
|
|
38 |
|
all: dll dgmx clients-dll |
39 |
|
|
40 |
|
dll: $(DLL) |
41 |
|
|
42 |
|
dgmx: $(DGMX) |
43 |
|
|
44 |
|
clients-dll: $(CLIENTS_DLL) |
45 |
|
|
46 |
|
clients: $(CLIENTS) |
47 |
|
|
48 |
|
directories: |
49 |
|
$(mkinstalldirs) $(INDEX_DIR) |
50 |
|
$(mkinstalldirs) $(DATA_DIR) |
51 |
|
|
52 |
|
install: |
53 |
|
|
54 |
|
install-test: install-dgmx install-dll |
55 |
|
|
56 |
|
install-dgmx: directories dgmx |
57 |
|
$(INSTALL) $(DGMX) $(INDEX_DIR) |
58 |
|
|
59 |
|
install-dll: directories dll |
60 |
|
$(INSTALL) $(DLL) $(DATA_DIR) |
61 |
|
|
62 |
|
clean: |
63 |
|
rm -rf *.obj |
64 |
|
rm -f $(DGMX) |
65 |
|
rm -f $(DLL) |
66 |
|
rm -f $(CLIENTS) |
67 |
|
rm -f $(CLIENTS_DLL) |
68 |
|
|
69 |
|
distclean: clean |
70 |
|
rm -f Makefile |