2 # ReactOS cmdutils makefile
7 TARGET=more.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 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
23 $(CC) y.o -lkernel32 -lmsvcrt -o y.exe y.coff
24 $(NM) --numeric-sort y.exe > y.sym
26 clean: $(CLEAN_FILES:%=%_clean)
28 $(CLEAN_FILES:%=%_clean): %_clean:
31 .phony: clean $(CLEAN_FILES:%=%_clean)
34 floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
36 $(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
38 $(CP) $* $(FLOPPY_DIR)\apps\$*
40 $(CP) $* $(FLOPPY_DIR)/apps/$*
44 dist: $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
46 $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
48 $(CP) $* $(PATH_TO_TOP)\$(DIST_DIR)\apps\$*
50 $(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
53 include $(PATH_TO_TOP)/rules.mak