File: makefile

package info (click to toggle)
dosemu-freedos 1%3A0.0.b9r5a%2Betch.1-0etch1
  • links: PTS
  • area: contrib
  • in suites: etch
  • size: 19,744 kB
  • ctags: 23,279
  • sloc: ansic: 143,864; asm: 20,397; makefile: 3,868; perl: 1,106; yacc: 690; sh: 553; pascal: 297; xml: 150; cpp: 67
file content (45 lines) | stat: -rw-r--r-- 932 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
#
# Makefile for FreeDOS MEM
#
#
# You might need to change the following lines if you use another
# compiler than Turbo / Watcom C
#
# for Turbo C:
# assuming that a) tcc , tlink and nasm are all your path and
# b) these are configured the right way, for instance using a turboc.cfg
# file in the same directory with e.g. -IC:\TC\INCLUDE -LC:\TC\LIB.
#
# for Watcom: make sure it's setup correctly

#for WATCOM
CC	= wcl
CFLAGS  = -c -j -wx -ms -oahls -s -d1
LFLAGS  = -fm -"option statics"
MEMSUPT =
##for Turbo
#CC	= tcc
#CFLAGS  = -c -w -ms -a- -k- -N- -d -O -O2
#LFLAGS  = -ms -M
#MEMSUPT = memsupt.obj

mem.exe: mem.obj prf.obj $(MEMSUPT)
	$(CC) $(LFLAGS) mem.obj prf.obj $(MEMSUPT)
	upx --8086 --best mem.exe

.c.obj:
	$(CC) $(CFLAGS) $<

.asm.obj:
	nasm -fobj $*.asm

clean:
	del *.obj
	del *.map

distclean: clean
	del mem.exe

dist: mem.exe
	copy mem.exe ..\..\bin
	del mem.exe