-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.pdw
34 lines (26 loc) · 1 KB
/
Makefile.pdw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#******************************************************************************
# @file Makefile.pdw
#******************************************************************************
AS=aswin
CC=gccwin
LD=ldwin
COPTS=-S -O2 -fno-common -ansi -I. -I../pdos/pdpclib -D__WIN32__ -D__NOBIVA__ -D__PDOS__
COBJ=common.o report.o write7x.o
all: clean mkdosfs.exe mcopy.exe mmd.exe mls.exe
mkdosfs.exe: lib.o mkfs.o $(COBJ)
$(LD) -s -o mkdosfs.exe ../pdos/pdpclib/w32start.o lib.o mkfs.o $(COBJ) ../pdos/pdpclib/msvcrt.a
mcopy.exe: mcopy.o $(COBJ)
$(LD) -s -o mcopy.exe ../pdos/pdpclib/w32start.o mcopy.o $(COBJ) ../pdos/pdpclib/msvcrt.a
mmd.exe: mmd.o $(COBJ)
$(LD) -s -o mmd.exe ../pdos/pdpclib/w32start.o mmd.o $(COBJ) ../pdos/pdpclib/msvcrt.a
mls.exe: mls.o $(COBJ)
$(LD) -s -o mls.exe ../pdos/pdpclib/w32start.o mls.o $(COBJ) ../pdos/pdpclib/msvcrt.a
.c.o:
$(CC) $(COPTS) $<
$(AS) -o $@ $*.s
rm -f $*.s
clean:
rm -f *.o mkdosfs.exe
rm -f *.o mcopy.exe
rm -f *.o mmd.exe
rm -f *.o mls.exe