1999-03-20 20:28:42 +00:00
|
|
|
#
|
1999-03-21 21:32:45 +00:00
|
|
|
# ReactOS makefile for CMD
|
1999-03-20 20:28:42 +00:00
|
|
|
#
|
1998-12-08 04:31:41 +00:00
|
|
|
|
1999-09-12 18:23:31 +00:00
|
|
|
TARGET=cmd.exe
|
|
|
|
|
|
|
|
all: $(TARGET)
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1999-08-21 22:06:03 +00:00
|
|
|
OBJECTS = cmd.o attrib.o alias.o batch.o beep.o call.o chcp.o choice.o \
|
|
|
|
cls.o cmdinput.o cmdtable.o color.o console.o copy.o date.o del.o \
|
1999-09-12 18:23:31 +00:00
|
|
|
delay.o dir.o dirstack.o echo.o error.o filecomp.o for.o free.o \
|
|
|
|
goto.o history.o if.o internal.o label.o locale.o memory.o misc.o \
|
|
|
|
move.o msgbox.o path.o pause.o prompt.o redir.o ren.o screen.o \
|
|
|
|
set.o shift.o start.o time.o timer.o title.o type.o ver.o \
|
1999-09-24 22:03:11 +00:00
|
|
|
verify.o vol.o where.o window.o cmd.coff
|
1999-09-12 18:23:31 +00:00
|
|
|
|
|
|
|
CLEAN_FILES = *.o cmd.exe cmd.sym cmd.coff
|
|
|
|
|
|
|
|
|
|
|
|
cmd.exe: $(OBJECTS)
|
|
|
|
$(CC) $(OBJECTS) -lkernel32 -lcrtdll -luser32 -o cmd.exe
|
|
|
|
$(NM) --numeric-sort cmd.exe > cmd.sym
|
1999-03-21 21:32:45 +00:00
|
|
|
|
1999-04-03 23:43:27 +00:00
|
|
|
|
|
|
|
clean: $(CLEAN_FILES:%=%_clean)
|
|
|
|
|
|
|
|
$(CLEAN_FILES:%=%_clean): %_clean:
|
|
|
|
- $(RM) $*
|
|
|
|
|
|
|
|
.phony: clean $(CLEAN_FILES:%=%_clean)
|
1998-12-08 04:31:41 +00:00
|
|
|
|
1999-09-12 18:23:31 +00:00
|
|
|
|
|
|
|
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
|
1999-09-24 22:03:11 +00:00
|
|
|
$(CP) $* ../$(DIST_DIR)/apps\$*
|
1999-09-12 18:23:31 +00:00
|
|
|
endif
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1999-05-11 12:40:11 +00:00
|
|
|
include ../rules.mak
|
1999-10-03 22:20:33 +00:00
|
|
|
|
|
|
|
# EOF
|