1998-05-20 10:21:00 -04:00
|
|
|
#
|
|
|
|
# File: makefile.bcc
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1993
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
|
|
|
# Makefile : Builds ownerdrw example (DOS).
|
|
|
|
|
|
|
|
# WXWIN and BCCDIR are set by parent make
|
|
|
|
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
!include $(WXDIR)\src\makeb32.env
|
|
|
|
|
|
|
|
WXLIBDIR = $(WXDIR)\lib
|
|
|
|
WXINC = $(WXDIR)\include\msw
|
|
|
|
WXLIB = $(WXLIBDIR)\wx32.lib
|
1998-12-08 13:49:20 -05:00
|
|
|
LIBS=$(WXLIB) cw32 import32 ole2w32
|
1998-05-20 10:21:00 -04:00
|
|
|
|
|
|
|
TARGET=ownerdrw
|
|
|
|
|
|
|
|
!if "$(FINAL)" == "0"
|
|
|
|
LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
|
|
|
|
OPT = -Od
|
|
|
|
DEBUG_FLAGS= -v
|
|
|
|
!else
|
|
|
|
LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
|
|
|
|
OPT = -Od
|
|
|
|
DEBUG_FLAGS =
|
|
|
|
!endif
|
|
|
|
CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
|
|
|
|
|
|
|
|
OBJECTS = ownerdrw.obj
|
|
|
|
|
|
|
|
$(TARGET).exe: $(OBJECTS) $(TARGET).def $(TARGET).res
|
|
|
|
tlink32 $(LINKFLAGS) @&&!
|
|
|
|
c0w32.obj $(OBJECTS)
|
|
|
|
$(TARGET)
|
|
|
|
nul
|
|
|
|
$(LIBS)
|
|
|
|
$(TARGET).def
|
1998-11-17 18:03:15 -05:00
|
|
|
$(TARGET).res
|
1998-05-20 10:21:00 -04:00
|
|
|
!
|
|
|
|
|
|
|
|
.$(SRCSUFF).obj:
|
|
|
|
bcc32 $(CPPFLAGS) -c {$< }
|
|
|
|
|
|
|
|
.c.obj:
|
|
|
|
bcc32 $(CPPFLAGS) -P- -c {$< }
|
|
|
|
|
|
|
|
ownerdrw.obj: ownerdrw.$(SRCSUFF)
|
|
|
|
|
|
|
|
$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
|
|
|
|
brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-erase *.obj
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.res
|
|
|
|
-erase *.map
|
|
|
|
-erase *.rws
|
|
|
|
|