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-03-20 20:28:42 +00:00
|
|
|
# target: raw binary (does not work right now)
|
|
|
|
#all: cmd.bin
|
|
|
|
|
|
|
|
# target: executable (not tested/experimental)
|
|
|
|
all: cmd.exe
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
OBJECTS = ../common/crt0.o cmd.o attrib.o alias.o batch.o beep.o call.o chcp.o cls.o cmdinput.o cmdtable.o\
|
|
|
|
color.o console.o copy.o date.o del.o dir.o dirstack.o echo.o error.o filecomp.o for.o goto.o history.o if.o\
|
|
|
|
internal.o label.o locale.o misc.o move.o path.o pause.o prompt.o redir.o ren.o ros.o set.o shift.o time.o title.o type.o ver.o\
|
|
|
|
verify.o vol.o where.o
|
|
|
|
|
|
|
|
LIBS= ../../lib/kernel32/kernel32.a ../../lib/ntdll/ntdll.a
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1998-12-08 04:31:41 +00:00
|
|
|
|
|
|
|
cmd.bin: $(OBJECTS)
|
|
|
|
$(LD) -Ttext 0x10000 $(OBJECTS) $(LIBS) -o cmd.exe
|
|
|
|
$(OBJCOPY) -O binary cmd.exe cmd.bin
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
cmd.exe: $(OBJECTS) $(LIBS)
|
|
|
|
$(CC) -specs=../../specs $(OBJECTS) $(LIBS) -lgcc -o cmd.exe
|
|
|
|
$(NM) --numeric-sort cmd.exe > cmd.sym
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1998-12-08 04:31:41 +00:00
|
|
|
include ../../rules.mak
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
|
|
|
|
|