-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathwin32.mak
66 lines (48 loc) · 1.54 KB
/
win32.mak
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#_ win32.mak
# Build win32 version of microemacs
# Needs Digital Mars C compiler to build, available free from:
# http://www.digitalmars.com
D=\dm
LIB=$D\lib
SNN=$D\lib\snn
INCLUDE=-I$D\include
TARGET=men
CFLAGS= -o $(INCLUDE) $(DEBUG)
LFLAGS=/map
.c.obj :
sc -c $(CFLAGS) $*
OBJa= ansi.obj basic.obj buffer.obj display.obj file.obj fileio.obj line.obj
OBJb= random.obj region.obj search.obj spawn.obj tcap.obj termio.obj vt52.obj
OBJc= window.obj word.obj main.obj more.obj disprev.obj browse.obj
OBJd= mouse.obj menu.obj memenu.obj capture.obj patchexe.obj win32.obj url.obj
ALLOBJS=$(OBJa) $(OBJb) $(OBJc) $(OBJd)
all: $(TARGET).exe
#################################################
$(TARGET).exe : $(ALLOBJS) $(TARGET).lnk $(TARGET).def
$D\bin\link @$(TARGET).lnk
keypress.exe : keypress.c
sc $(CFLAGS) keypress
########################################
$(TARGET).lnk : win32.mak
echo $(OBJa)+ > $*.lnk
echo $(OBJb)+ >> $*.lnk
echo $(OBJc)+ >> $*.lnk
echo $(OBJd)$(LFLAGS) >> $*.lnk
echo $* >> $*.lnk
echo $* >> $*.lnk
echo $(SNN)+ >> $*.lnk
echo $(LIB)\kernel32+ >> $*.lnk
echo $(LIB)\user32 >> $*.lnk
echo $*.def; >> $*.lnk
########################################
$(TARGET).def : win32.mak
echo NAME $(TARGET) > $*.def
echo SUBSYSTEM CONSOLE >> $*.def
echo EXETYPE NT >> $*.def
echo CODE SHARED EXECUTE >> $*.def
echo STUB '$(LIB)\ntstub.exe' >> $*.def
###### Source file dependencies ######
menu.obj : menu.h
capture.obj : capture.h
spawn.obj : capture.h
###################################