File: makefile.os2

package info (click to toggle)
cal 3.5-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge, squeeze
  • size: 284 kB
  • ctags: 120
  • sloc: ansic: 1,116; makefile: 41
file content (43 lines) | stat: -rw-r--r-- 939 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
# Makefile for "cal" (tested with dmake 3.8)                     25 July 1993
#
# - for GNU gcc (emx 0.8g kit) under OS/2 2.0 (32-bit)
# - for Microsoft C 6.00 under OS/2 or MSDOS (16-bit)

# To use, enter "{d,n}make -f makefile.os2" (this makefile depends on its
# name being "makefile.os2").

default:
	@echo Enter "$(MAKE) -f Makefile.os2 emx"
	@echo    or "$(MAKE) -f Makefile.os2 msc"
	@echo    or "$(MAKE) -f Makefile.os2 mscbnd"


emx:  
	$(MAKE) -f Makefile.os2 all \
	CC="gcc -Zomf -Zmtd -O -s" O=".obj" \
	CFLAGS="-DOS2" \
	LFLAGS="" \
	LFLAGS2="cal-32.def"
	
msc: 
	$(MAKE) -f Makefile.os2 all \
	CC="cl -nologo -AS" O=".obj" \
	CFLAGS="-DOS2 -UMSDOS" \
	LFLAGS="-Lp" \
	LFLAGS2="cal.def"

mscbnd: 
	$(MAKE) -f Makefile.os2 all \
	CC="cl -nologo -AS" O=".obj" \
	CFLAGS="-DOS2 -UMSDOS" \
	LFLAGS="-Lp -Fb" \
	LFLAGS2="cal.def"


all : cal.exe

.c$O :
	$(CC) $(CFLAGS) -c $<

cal.exe : cal$O
	$(CC) -o $@ $(LFLAGS) $< $(LFLAGS2)