home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
gbmos2pm.zip
/
gbmv2
/
makefile
< prev
next >
Wrap
Makefile
|
1999-03-21
|
2KB
|
71 lines
#
# Simple bitmap viewer II
#
# OS/2
# IBM VisualAge C++, with CTC306, CTD302 and CTU304
#
GBM = \build\os2\graphics\gbm
GBMDLG = ..\gbmdlg
.SUFFIXES: .c .obj
CWARNS = /W3 /Wcnd+cns+ord+par+pro+rea+ret+use+
CFLAGS = /C+ /I$(GBM) /I$(GBMDLG) /G4 /Gd-e+m+ $(CWARNS) /Q+ /O+ /Os-
LFLAGS = /NOLOGO /ALIGN:4 /BASE:0x10000 /NOI
.c.obj:
icc $(CFLAGS) $*.c
#
all: gbmv2.exe gbmv2.hlp
OBJS = scroll.obj model.obj bmputils.obj help.obj gbmv2.obj
LIBS = $(GBM)\gbm.lib \
$(GBM)\gbmtrunc.lib $(GBM)\gbmerr.lib $(GBM)\gbmht.lib \
$(GBM)\gbmhist.lib $(GBM)\gbmmcut.lib \
$(GBM)\gbmmir.lib $(GBM)\gbmrect.lib $(GBM)\gbmscale.lib \
$(GBMDLG)\gbmdlg.lib
gbmv2.exe: $(OBJS) $(LIBS) gbmv2.def gbmv2.res
ilink $(LFLAGS) /OUT:$@ $(OBJS) $(LIBS) gbmv2.def
rc -n gbmv2.res $@
scroll.obj: scroll.c scroll.h
model.obj: model.c model.h \
$(GBM)\gbm.h \
$(GBM)\gbmtrunc.h $(GBM)\gbmerr.h $(GBM)\gbmht.h \
$(GBM)\gbmhist.h $(GBM)\gbmmcut.h \
$(GBM)\gbmmir.h $(GBM)\gbmrect.h $(GBM)\gbmscale.h
bmputils.obj: bmputils.c bmputils.h
help.obj: help.c gbmv2hlp.h
gbmv2.obj: gbmv2.c gbmv2.h scroll.h model.h bmputils.h help.h \
$(GBM)\gbm.h \
$(GBMDLG)\gbmdlg.h $(GBMDLG)\gbmdlgrc.h
gbmv2.res: gbmv2.rc gbmv2.ico $(GBMDLG)\gbmdlgrc.h gbmv2.h gbmv2hlp.h
(set INCLUDE=$(GBMDLG);$(INCLUDE) && rc -n -r gbmv2.rc)
gbmv2.hlp: gbmv2.scr gbmv2hlp.h $(GBMDLG)\gbmdlgrc.h $(GBMDLG)\gbmdlg.scr
(set INCLUDE=$(GBMDLG);$(INCLUDE) && ipfcprep gbmv2.scr gbmv2.ipf)
ipfc gbmv2.ipf /country=044 /codepage=437 /language=ENG /X /W1
#
clean:
-del *.obj *.res *.ipf 2> nul
#
IDIR = d:\gbm
install:
copy *.exe $(IDIR)
copy *.hlp $(IDIR)