### -*- Fundamental -*-
###
-### $Id: makefile.wcc,v 1.4 1995/10/25 05:01:42 cph Exp $
+### $Id: makefile.wcc,v 1.5 1995/10/30 08:09:51 cph Exp $
###
### Copyright (c) 1994-95 Massachusetts Institute of Technology
###
#### Makefile for Scheme under OS/2 using Watcom C/C++
\f
# This makefile is configured for use with GNU make, the Watcom C
-# compiler, GNU m4, and the Watcom assembler.
+# compiler, GNU m4, the Watcom assembler, and the RC program included
+# with the IBM OS/2 Toolkit.
OBJ = obj
ASM = asm
# /ze enable language extensions (default)
# /zp4 use 4-byte alignment
# /zq operate quietly
-CFLAGS = /4r /bm /d1+ /fpi /fp3 /oe /op /ox /s /sg /w0 /zc /zp4 /zq /dMIT_SCHEME
+CFLAGS = /4r /bm /d2 /fpi /fp3 /op /s /sg /w0 /zc /zp4 /zq /dMIT_SCHEME
# Linker options.
#
%.obj : %.asm
$(AS) $(ASFLAGS) /fo=$@ $<
+%.res : %.rc
+ rc -r $<
+
%.exe :
wlink system os2v2 $(LDFLAGS) name $@ file { $^ }
cmpauxmd.asm : cmpauxmd.m4 asmcvt.exe
.\asmcvt pre < $< | $(M4) $(M4FLAGS) | .\asmcvt post > $@
-scheme.exe : $(OBJECTS) $(SCHEME_OBJECTS)
- wlink system os2v2_pm name $@ $(LDFLAGS) file { $^ } $(SCHEME_LIB)
+scheme.exe : $(OBJECTS) $(SCHEME_OBJECTS) os2pmcon.res
+ wlink system os2v2_pm name $@ $(LDFLAGS) \
+ file { $(OBJECTS) $(SCHEME_OBJECTS) } $(SCHEME_LIB)
+ rc os2pmcon.res $@
-bchschem.exe : $(BCHOBJECTS) $(SCHEME_OBJECTS)
- wlink system os2v2_pm name $@ $(LDFLAGS) file { $^ } $(SCHEME_LIB)
+bchschem.exe : $(BCHOBJECTS) $(SCHEME_OBJECTS) os2pmcon.res
+ wlink system os2v2_pm name $@ $(LDFLAGS) \
+ file { $(OBJECTS) $(SCHEME_OBJECTS) } $(SCHEME_LIB)
+ rc os2pmcon.res $@