reactos/rosapps/cmdutils/makefile
Eric Kohl 1241612f69 Added MORE command.
svn path=/trunk/; revision=673
1999-09-27 22:13:59 +00:00

48 lines
862 B
Makefile

#
# ReactOS cmdutils makefile
#
TARGET=more.exe tee.exe
all: $(TARGET)
CLEAN_FILES = *.o *.exe *.sym *.coff
more.exe: more.o
$(CC) more.o -lkernel32 -lcrtdll -o more.exe
$(NM) --numeric-sort more.exe > more.sym
tee.exe: tee.o
$(CC) tee.o -lkernel32 -lcrtdll -o tee.exe
$(NM) --numeric-sort tee.exe > tee.sym
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
dist: $(TARGET:%=../$(DIST_DIR)/apps/%)
$(TARGET:%=../$(DIST_DIR)/apps/%): ../$(DIST_DIR)/apps/%: %
ifeq ($(DOSCLI),yes)
$(CP) $* ..\$(DIST_DIR)\apps\$*
else
$(CP) $* ../$(DIST_DIR)/apps/$*
endif
include ../rules.mak