home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Win32 Under the API
/
ProgrammingWin32UnderTheApiPatVillani.iso
/
Chapter9
/
cmd32
/
Makefile
< prev
next >
Wrap
Makefile
|
2000-07-13
|
2KB
|
157 lines
#
#
#
#
#
#
#
#
#
# *Translator Definitions*
CC = gcc
#CFLAGS = -g -DDEBUG
CFLAGS = -g
LD = ld
OBJ = \
cmd.o cd.o copy.o date.o del.o dir.o echo.o err.o \
mkdir.o path.o prf.o prompt.o rem.o ren.o \
rmdir.o scan.o set.o time.o type.o ver.o
ORIG_OBJ = \
batch.o \
break.o \
call.o \
cd.o \
cmd.o \
copy.o \
date.o \
del.o \
dir.o \
echo.o \
env.o \
err.o \
for.o \
goto.o \
if.o \
label.o \
mkdir.o \
path.o \
pause.o \
prompt.o \
rem.o \
ren.o \
rmdir.o \
scan.o \
set.o \
shift.o \
time.o \
type.o \
ver.o \
verify.o \
dosopt.o \
num.o \
prf.o \
strings.o \
home.o \
doslib.o
# *Explicit Rules*
all: cmd32.exe
cmd32.exe: $(OBJ)
$(CC) -o cmd32.exe $(OBJ)
# *Individual File Dependencies*
batch.o: batch.c globals.h
break.o: break.c globals.h
call.o: call.c globals.h
cd.o: cd.c globals.h
cmd.o: cmd.c globals.h
copy.o: copy.c globals.h
date.o: date.c globals.h
del.o: del.c globals.h
dir.o: dir.c globals.h
echo.o: echo.c globals.h
env.o: env.c globals.h
err.o: err.c globals.h
for.o: for.c globals.h
goto.o: goto.c globals.h
if.o: if.c globals.h
label.o: label.c globals.h
mkdir.o: mkdir.c globals.h
path.o: path.c globals.h
pause.o: pause.c globals.h
prompt.o: prompt.c globals.h
rem.o: rem.c globals.h
ren.o: ren.c globals.h
rmdir.o: rmdir.c globals.h
scan.o: scan.c globals.h
set.o: set.c globals.h
shift.o: shift.c globals.h
time.o: time.c globals.h
type.o: type.c globals.h
ver.o: ver.c globals.h
verify.o: verify.c globals.h
dosopt.o: ../misc/dosopt.c
$(CC) -c ../misc/dosopt.c
num.o: ../misc/num.c
$(CC) -c ../misc/num.c
prf.o: ../../Chapter5/printf/prf.c
$(CC) $(CFLAGS) -c ../../Chapter5/printf/prf.c
strings.o: ../misc/strings.c
$(CC) -c ../misc/strings.c
home.o: ../misc/home.c
$(CC) -c ../misc/home.c
doslib.o: doslib.c
# Maintenance rules
clean:
del *.o
del cmd32.exe