2 # ReactOS cmdutils makefile
7 TARGET=more.exe sort.exe tee.exe y.exe
12 CLEAN_FILES = *.o *.exe *.sym *.coff
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
18 sort.exe: sort.o sort.coff
19 $(CC) sort.o -lkernel32 -lmsvcrt -o sort.exe sort.coff
20 $(NM) --numeric-sort sort.exe > sort.sym
22 tee.exe: tee.o tee.coff
23 $(CC) tee.o -lkernel32 -lmsvcrt -o tee.exe tee.coff
24 $(NM) --numeric-sort tee.exe > tee.sym
27 $(CC) y.o -lkernel32 -lmsvcrt -o y.exe y.coff
28 $(NM) --numeric-sort y.exe > y.sym
30 clean: $(CLEAN_FILES:%=%_clean)
32 $(CLEAN_FILES:%=%_clean): %_clean:
35 .phony: clean $(CLEAN_FILES:%=%_clean)
38 floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
40 $(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
42 $(CP) $* $(FLOPPY_DIR)\apps\$*
44 $(CP) $* $(FLOPPY_DIR)/apps/$*
48 dist: $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
50 $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
52 $(CP) $* $(PATH_TO_TOP)\$(DIST_DIR)\apps\$*
54 $(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
57 include $(PATH_TO_TOP)/rules.mak