2 # ReactOS cmdutils makefile
7 TARGET=find.exe more.exe sort.exe tee.exe y.exe
12 CLEAN_FILES = *.o *.exe *.sym *.coff
14 find.exe: find.o find.coff
15 $(CC) find.o -lkernel32 -lmsvcrt -o find.exe find.coff
16 $(NM) --numeric-sort find.exe > find.sym
18 more.exe: more.o more.coff
19 $(CC) more.o -lkernel32 -lmsvcrt -o more.exe more.coff
20 $(NM) --numeric-sort more.exe > more.sym
22 sort.exe: sort.o sort.coff
23 $(CC) sort.o -lkernel32 -lmsvcrt -o sort.exe sort.coff
24 $(NM) --numeric-sort sort.exe > sort.sym
26 tee.exe: tee.o tee.coff
27 $(CC) tee.o -lkernel32 -lmsvcrt -o tee.exe tee.coff
28 $(NM) --numeric-sort tee.exe > tee.sym
31 $(CC) y.o -lkernel32 -lmsvcrt -o y.exe y.coff
32 $(NM) --numeric-sort y.exe > y.sym
39 clean: $(CLEAN_FILES:%=%_clean)
41 $(CLEAN_FILES:%=%_clean): %_clean:
44 .phony: clean $(CLEAN_FILES:%=%_clean)
47 floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
49 $(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
51 $(CP) $* $(FLOPPY_DIR)\apps\$*
53 $(CP) $* $(FLOPPY_DIR)/apps/$*
57 dist: $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
59 $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
61 $(CP) $* $(PATH_TO_TOP)\$(DIST_DIR)\apps\$*
63 $(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
66 include $(PATH_TO_TOP)/rules.mak