b428d661dd9b3ca26039445a5009de38ddf726a6
[reactos.git] / rosapps / tests / mstest / Makefile
1 #
2 #
3 #
4 PATH_TO_TOP = ../../../reactos
5
6 include $(PATH_TO_TOP)/config
7 include $(PATH_TO_TOP)/rules.mak
8
9 SRV_OBJECTS = msserver.o
10 CLT_OBJECTS = msclient.o
11
12 PROGS = msserver.exe msclient.exe
13
14 CFLAGS = $(STD_CFLAGS)
15
16 LIBS = $(SDK_PATH_LIB)/libkernel32.a \
17 $(SDK_PATH_LIB)/libntdll.a
18
19 all: $(PROGS)
20
21 .phony: all
22
23 implib:
24
25 clean:
26 - $(RM) *.o *.exe *.sym
27
28 .phony: implib clean
29
30 ifneq ($(BOOTCD_INSTALL),)
31
32 install: $(PROGS:%=$(INSTALL_DIR)/%)
33
34 $(PROGS:%=$(INSTALL_DIR)/%): $(INSTALL_DIR)/%: %
35 $(CP) $* $(INSTALL_DIR)/$*
36
37 else # BOOTCD_INSTALL
38
39 install: $(PROGS:%=$(INSTALL_DIR)/bin/%)
40
41 $(PROGS:%=$(INSTALL_DIR)/bin/%): $(INSTALL_DIR)/bin/%: %
42 $(CP) $* $(INSTALL_DIR)/bin/$*
43
44 endif # BOOTCD_INSTALL
45
46 msserver.exe: $(SRV_OBJECTS) $(LIBS)
47 $(CC) $(SRV_OBJECTS) $(LIBS) -o msserver.exe
48 $(NM) --numeric-sort msserver.exe > msserver.sym
49
50 msclient.exe: $(CLT_OBJECTS) $(LIBS)
51 $(CC) $(CLT_OBJECTS) $(LIBS) -o msclient.exe
52 $(NM) --numeric-sort msclient.exe > msclient.sym