home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
yacl-012.zip
/
ui
/
makefile.bc
< prev
next >
Wrap
Makefile
|
1995-04-09
|
3KB
|
153 lines
!include ..\control\bcmak.ctl
LIBRARY = $(UI)
LIBRARYP = $(YACLLIB)\$(LIBRARY)
# ------------------------ Names of files --------------------------
OBJECTS = \
applic.obj \
arc.obj \
bitmap.obj \
brush.obj \
btngroup.obj \
canvas.obj \
chord.obj \
cntroler.obj \
color.obj \
combobox.obj \
containr.obj \
composit.obj \
cursor.obj \
dialog.obj \
dsplrsrc.obj \
dsplsurf.obj \
dwgsurf.obj \
ellipse.obj \
event.obj \
font.obj \
fontdesc.obj \
graphic.obj \
grutils.obj \
interval.obj \
label.obj \
lineseg.obj \
mainprog.obj \
menu.obj \
monthcal.obj \
orbtngrp.obj \
pen.obj \
piewedge.obj \
point.obj \
pushbtn.obj \
rectangl.obj \
scrolbar.obj \
simple.obj \
stddlg.obj \
stencil.obj \
stred.obj \
strseq.obj \
strview.obj \
textedit.obj \
timer.obj \
toglbtn.obj \
visualob.obj \
vobjcoll.obj \
xrbtngrp.obj \
xrtglbtn.obj
!if $(YACLPLATFORM) == os2
PLATFORM_OBJECTS = os2evt.obj printjob.obj
!elif $(YACLPLATFORM) == windows
PLATFORM_OBJECTS = printjob.obj winevt.obj
!endif
# ---------------------- Compilation rules -----------------------
.SUFFIXES:
.SUFFIXES: .cxx .obj
CCOPTS = $(CCOPTS) -Jgd
!if $d(RAMDRIVE)
CCOPTS = -I$(RAMDRIVE)\ $(CCOPTS)
!endif
TARGET = $(LIBRARYP).lib
!if $d(BUILD_DLL)
!if $(YACLPLATFORM) == windows
CCOPTS = $(CCOPTS) -DBUILD_DLL -WD
!elif $(YACLPLATFORM) == os2
CCOPTS = $(CCOPTS) -sd -DBUILD_DLL
TARGET = $(LIBRARYP).dll
!else
!error Cannot build DLL for $(YACLPLATFORM).
!endif
!endif
.cxx.obj:
$(CC) $(DEBUG) +$(LIBRARY).cfg { $<}
all: $(LIBRARY).cfg $(TARGET)
$(LIBRARY).cfg: makefile.bc
copy &&|
$(WARNINGS) $(CCOPTS)
| $(LIBRARY).cfg
$(LIBRARYP).lib: $(OBJECTS) $(PLATFORM_OBJECTS)
$(LIBR) $(LIBRARYP) /P64 @&&!
-+$(OBJECTS: = -+)
!
$(LIBR) $(LIBRARYP) /P64 @&&!
-+$(PLATFORM_OBJECTS: = -+)
!
-$(DELETE) $(LIBRARYP).bak
$(LIBRARYP).dll: $(OBJECTS) $(PLATFORM_OBJECTS)
tlink -c -x -v -Tod -L$(BCPATH)\lib $(BCPATH)\lib\c02d.obj @&&|
$(OBJECTS)
|, $(LIBRARYP).dll, NUL, c2 + os2, $(LIBRARYP)
implib $(LIBRARYP).lib $(LIBRARYP).dll
# ------------------ Other targets ---------------------------
clean:
-del *.obj
-del *.cfg
-del $(LIBRARYP).lib
-del $(LIBRARYP).bak
-del $(YACLLIB)\$(MEMORY).lib
-del $(YACLLIB)\$(MEMORY).bak