2c4ee70445e612c371157c06c01caf9dc594f657
[reactos.git] / reactos / apps / tests / test_old / makefile
1 #
2 #
3 #
4 PROGS= test-stdio tst-printf tstdiomisc bug2 bug3 \
5 temptest test-fseek test_rdwr
6
7 all: $(PROGS:%=%.exe)
8
9 .phony: all
10
11 $(PROGS:%=%_clean): %_clean:
12 - $(RM) $*.o
13 - $(RM) $*.exe
14 - $(RM) $*.sym
15
16 clean: $(PROGS:%=%_clean)
17
18 .phony: clean
19
20 install: # $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
21
22 $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
23 ifeq ($(DOSCLI),yes)
24 $(CP) $*.exe $(FLOPPY_DIR)\apps\$*.exe
25 else
26 $(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
27 endif
28
29 dist: $(PROGS:%=../../$(DIST_DIR)/apps/%.exe)
30
31 $(PROGS:%=../../$(DIST_DIR)/apps/%.exe): ../../$(DIST_DIR)/apps/%.exe: %.exe
32 ifeq ($(DOSCLI),yes)
33 $(CP) $*.exe ..\..\$(DIST_DIR)\apps\$*.exe
34 else
35 $(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
36 endif
37
38 bug2.exe: bug2.c
39 $(CC) bug2.c -lkernel32 -o bug2.exe
40 $(NM) --numeric-sort bug2.exe > bug2.sym
41
42 bug3.exe: bug3.c
43 $(CC) bug3.c -lkernel32 -o bug3.exe
44 $(NM) --numeric-sort bug3.exe > bug3.sym
45
46 temptest.exe: temptest.c
47 $(CC) temptest.c -lkernel32 -o temptest.exe
48 $(NM) --numeric-sort temptest.exe > temptest.sym
49
50 test-fseek.exe: test-fseek.c
51 $(CC) test-fseek.c -lkernel32 -o test-fseek.exe
52 $(NM) --numeric-sort test-fseek.exe > test-fseek.sym
53
54 test-fwrite.exe: test-fwrite.c
55 $(CC) test-fwrite.c -lkernel32 -o test-fwrite.exe
56 $(NM) --numeric-sort test-fwrite.exe > test-fwrite.sym
57
58 test_rdwr.exe: test_rdwr.c
59 $(CC) test_rdwr.c -lkernel32 -o test_rdwr.exe
60 $(NM) --numeric-sort test_rdwr.exe > test_rdwr.sym
61
62 test-stdio.exe: test-stdio.c
63 $(CC) test-stdio.c -lkernel32 -o test-stdio.exe
64 $(NM) --numeric-sort test-stdio.exe > test-stdio.sym
65
66 tst-printf.exe: tst-printf.c
67 $(CC) tst-printf.c -lkernel32 -o tst-printf.exe
68 $(NM) --numeric-sort tst-printf.exe > tst-printf.sym
69
70 tstdiomisc.exe: tstdiomisc.c
71 $(CC) tstdiomisc.c -lkernel32 -o tstdiomisc.exe
72 $(NM) --numeric-sort tstdiomisc.exe > tstdiomisc.sym
73
74 include ../../rules.mak