Initial support for 1BPP
[reactos.git] / rosapps / cmdutils / makefile
1 #
2 # ReactOS cmdutils makefile
3 #
4
5 PATH_TO_TOP=..
6
7 TARGET=more.exe tee.exe y.exe
8
9 all: $(TARGET)
10
11
12 CLEAN_FILES = *.o *.exe *.sym *.coff
13
14 more.exe: more.o more.coff
15 $(CC) more.o -lkernel32 -lmsvcrt -o more.exe more.coff
16 $(NM) --numeric-sort more.exe > more.sym
17
18 tee.exe: tee.o tee.coff
19 $(CC) tee.o -lkernel32 -lmsvcrt -o tee.exe tee.coff
20 $(NM) --numeric-sort tee.exe > tee.sym
21
22 y.exe: y.o y.coff
23 $(CC) y.o -lkernel32 -lmsvcrt -o y.exe y.coff
24 $(NM) --numeric-sort y.exe > y.sym
25
26 clean: $(CLEAN_FILES:%=%_clean)
27
28 $(CLEAN_FILES:%=%_clean): %_clean:
29 - $(RM) $*
30
31 .phony: clean $(CLEAN_FILES:%=%_clean)
32
33
34 floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
35
36 $(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
37 ifeq ($(DOSCLI),yes)
38 $(CP) $* $(FLOPPY_DIR)\apps\$*
39 else
40 $(CP) $* $(FLOPPY_DIR)/apps/$*
41 endif
42
43
44 dist: $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
45
46 $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
47 ifeq ($(DOSCLI),yes)
48 $(CP) $* $(PATH_TO_TOP)\$(DIST_DIR)\apps\$*
49 else
50 $(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
51 endif
52
53 include $(PATH_TO_TOP)/rules.mak
54