move work on clean rule
[reactos.git] / reactos / apps / tests / nptest / Makefile
1 #
2 #
3 #
4 PATH_TO_TOP = ../..
5
6 SRV_OBJECTS = npserver.o
7 CLT_OBJECTS = npclient.o
8
9 PROGS = npserver.exe npclient.exe
10
11 BASE_CFLAGS = -I../../include
12 LIBS = ../../lib/crtdll/crtdll.a ../../lib/kernel32/kernel32.a
13
14 all: $(PROGS)
15
16 .phony: all
17
18 clean:
19 - $(RM) *.o *.exe *.sym
20
21 .phony: clean
22
23 install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
24
25 $(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
26 $(CP) $* $(FLOPPY_DIR)/apps/$*
27
28 dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
29
30 $(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
31 $(CP) $* ../../$(DIST_DIR)/apps/$*
32
33 npserver.exe: $(SRV_OBJECTS) $(LIBS)
34 $(CC) $(SRV_OBJECTS) $(LIBS) -o npserver.exe
35 $(NM) --numeric-sort npserver.exe > npserver.sym
36
37 npclient.exe: $(CLT_OBJECTS) $(LIBS)
38 $(CC) $(CLT_OBJECTS) $(LIBS) -o npclient.exe
39 $(NM) --numeric-sort npclient.exe > npclient.sym
40
41
42 include ../../rules.mak