1999-09-12 18:20:47 +00:00
|
|
|
#
|
|
|
|
# ReactOS cmdutils makefile
|
|
|
|
#
|
|
|
|
|
2002-09-09 22:49:00 +00:00
|
|
|
PATH_TO_TOP=..
|
|
|
|
|
1999-11-05 20:41:17 +00:00
|
|
|
TARGET=more.exe tee.exe y.exe
|
1999-09-12 18:20:47 +00:00
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
|
|
|
|
CLEAN_FILES = *.o *.exe *.sym *.coff
|
|
|
|
|
2000-12-19 23:06:20 +00:00
|
|
|
more.exe: more.o more.coff
|
2001-07-28 08:02:05 +00:00
|
|
|
$(CC) more.o -lkernel32 -lmsvcrt -o more.exe more.coff
|
1999-09-27 22:13:59 +00:00
|
|
|
$(NM) --numeric-sort more.exe > more.sym
|
1999-09-12 18:20:47 +00:00
|
|
|
|
2000-12-19 23:06:20 +00:00
|
|
|
tee.exe: tee.o tee.coff
|
2001-07-28 08:02:05 +00:00
|
|
|
$(CC) tee.o -lkernel32 -lmsvcrt -o tee.exe tee.coff
|
1999-09-12 18:20:47 +00:00
|
|
|
$(NM) --numeric-sort tee.exe > tee.sym
|
|
|
|
|
2000-12-19 23:06:20 +00:00
|
|
|
y.exe: y.o y.coff
|
2001-07-28 08:02:05 +00:00
|
|
|
$(CC) y.o -lkernel32 -lmsvcrt -o y.exe y.coff
|
1999-11-05 20:41:17 +00:00
|
|
|
$(NM) --numeric-sort y.exe > y.sym
|
1999-09-12 18:20:47 +00:00
|
|
|
|
|
|
|
clean: $(CLEAN_FILES:%=%_clean)
|
|
|
|
|
|
|
|
$(CLEAN_FILES:%=%_clean): %_clean:
|
|
|
|
- $(RM) $*
|
|
|
|
|
|
|
|
.phony: clean $(CLEAN_FILES:%=%_clean)
|
|
|
|
|
|
|
|
|
|
|
|
floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
|
|
|
|
|
|
|
|
$(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
|
|
|
|
ifeq ($(DOSCLI),yes)
|
|
|
|
$(CP) $* $(FLOPPY_DIR)\apps\$*
|
|
|
|
else
|
|
|
|
$(CP) $* $(FLOPPY_DIR)/apps/$*
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2002-09-09 22:49:00 +00:00
|
|
|
dist: $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
|
1999-09-12 18:20:47 +00:00
|
|
|
|
2002-09-09 22:49:00 +00:00
|
|
|
$(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
|
1999-09-12 18:20:47 +00:00
|
|
|
ifeq ($(DOSCLI),yes)
|
2002-09-09 22:49:00 +00:00
|
|
|
$(CP) $* $(PATH_TO_TOP)\$(DIST_DIR)\apps\$*
|
1999-09-12 18:20:47 +00:00
|
|
|
else
|
2002-09-09 22:49:00 +00:00
|
|
|
$(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
|
1999-09-12 18:20:47 +00:00
|
|
|
endif
|
|
|
|
|
2002-09-09 22:49:00 +00:00
|
|
|
include $(PATH_TO_TOP)/rules.mak
|
|
|
|
|