File: Makefile.dos

package info (click to toggle)
xconq 7.2.2-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,296 kB
  • ctags: 9,199
  • sloc: ansic: 107,849; sh: 2,108; perl: 2,057; makefile: 1,177; sed: 161; csh: 50; awk: 49; lisp: 39
file content (159 lines) | stat: -rw-r--r-- 2,917 bytes parent folder | download | duplicates (2)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Makefile for interface-independent code in Xconq.
# Copyright (C) 1994 Ed Boston.

# Xconq is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

srcdir = .

# Set this for wherever the library directory should be.

libdir = $(srcdir)/../lib

# Set this for wherever the man page should live.

MANDIR = /usr/man/manl

CC = cl

CFLAGS = -AL -Od -Zepi -DDEBUG -Gt10 

# Host and target-dependent makefile fragments come in here.
####
# End of host and target-dependent makefile fragments.

GAME_H = game.h gvar.def utype.def mtype.def ttype.def table.def

UNIT_H = unit.h action.def plan.def task.def

ALL_H = conq.h config.h misc.h dir.h lisp.h $(GAME_H) player.h side.h \
	$(UNIT_H) world.h history.h history.def module.h score.h \
	ai.h goal.def keyword.def

# Non-interface-specific object files.

OBJ = \
	init.obj \
	cmdline.obj \
	ai.obj \
	mplayer.obj \
	actions.obj \
	combat.obj \
	run.obj \
	score.obj \
	world.obj \
	history.obj \
	module.obj \
	write.obj \
	read.obj \
	lisp.obj \
	mkterr.obj \
	mkunits.obj \
	mkrivers.obj \
	mkroads.obj \
	mknames.obj \
	side.obj \
	unit.obj \
	plan.obj \
	task.obj \
	nlang.obj \
	ui.obj \
	ps.obj \
	tp.obj \
	obstack.obj \
	help.obj \
	copying.obj \
	generic.obj \
	types.obj \
	tables.obj \
	util.obj \
	dos.obj

# Random C compiler flags.

MSDOS_CFLAGS = -DMSDOS -DXCONQLIB=\"$(libdir)\"

ALL_CFLAGS = $(CFLAGS) $(MSDOS_CFLAGS) -I$(srcdir)

.c.obj:
	$(CC) -c /YX $(ALL_CFLAGS) $<

# Do it all.

all: conq.lib skelconq.exe

# The kernel library.  This is linked with interface code.

conq.lib: $(OBJ)
	!lib /PAGE:32 conq.lib -+$?;

# Test version of xconq.

skelconq.exe: skelconq.obj $(OBJ)
	$(CC) $(ALL_CFLAGS) skelconq.obj $(OBJ)

# Support things.

tests:
	run-tests

# Usual cleaning, and flushing of anything junk-like.

clean:
	del *.obj 
	del *.log
	del *.bak

distclean: clean
	del *.exe
	del *.lib
	del msvc.*

realclean: distclean

# All the .h dependencies.

init.obj:		$(ALL_H)
cmdline.obj:	$(ALL_H)
mknames.obj:	$(ALL_H)
ai.obj:		$(ALL_H)
actions.obj:	$(ALL_H)
combat.obj:	$(ALL_H)
plan.obj:		$(ALL_H)
plan2.obj:	$(ALL_H)
task.obj:		$(ALL_H)
run.obj:		$(ALL_H)
score.obj:	$(ALL_H)
world.obj:	$(ALL_H)
history.obj:	$(ALL_H)
module.obj:	$(ALL_H)
read.obj:		$(ALL_H)
write.obj:	$(ALL_H)
side.obj:		$(ALL_H)
unit.obj:		$(ALL_H)
help.obj:		$(ALL_H)
nlang.obj:	$(ALL_H)
grutil.obj:	$(ALL_H)
ps.obj:		$(ALL_H)
util.obj:		$(ALL_H)
dos.obj:		$(ALL_H)
mkunits.obj:	$(ALL_H)
mkterr.obj:	$(ALL_H)
mkrivers.obj:	$(ALL_H)
mkroads.obj:	$(ALL_H)

generic.obj:	config.h misc.h lisp.h $(GAME_H)
types.obj:	config.h misc.h lisp.h $(GAME_H)
tables.obj:	config.h misc.h lisp.h $(GAME_H)

lisp.obj:		config.h misc.h lisp.h

mplay.obj:	$(ALL_H) mplay.h
mplay2.obj:	$(ALL_H) mplay.h

skelconq.obj:	$(ALL_H)