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