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