reactos/rosapps/cmdutils/makefile
Emanuele Aliberti 2f5809598e cmd, more, tee, y, notevil, sysutils linked to msvcrt.dll.
svn path=/trunk/; revision=2111
2001-07-28 08:02:05 +00:00

52 lines
1,007 B
Makefile

#
# ReactOS cmdutils makefile
#
TARGET=more.exe tee.exe y.exe
all: $(TARGET)
CLEAN_FILES = *.o *.exe *.sym *.coff
more.exe: more.o more.coff
$(CC) more.o -lkernel32 -lmsvcrt -o more.exe more.coff
$(NM) --numeric-sort more.exe > more.sym
tee.exe: tee.o tee.coff
$(CC) tee.o -lkernel32 -lmsvcrt -o tee.exe tee.coff
$(NM) --numeric-sort tee.exe > tee.sym
y.exe: y.o y.coff
$(CC) y.o -lkernel32 -lmsvcrt -o y.exe y.coff
$(NM) --numeric-sort y.exe > y.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