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