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