1 # Borland MAKE Makefile for PDCurses library - OS/2 BC++ 1.0+
3 # Usage: make -f [path\]bccos2.mak [DEBUG=] [target]
5 # where target can be any of:
6 # [all|demos|pdcurses.lib|testcurs.exe...]
10 !ifndef PDCURSES_SRCDIR
14 !include $(PDCURSES_SRCDIR
)\version.mif
15 !include $(PDCURSES_SRCDIR
)\libobjs.mif
17 osdir
= $(PDCURSES_SRCDIR
)\os2
22 CFLAGS
= -N
-v
-y
-DPDCDEBUG
27 CPPFLAGS
= -I
$(PDCURSES_SRCDIR
)
29 BUILD
= $(CC
) -c
$(CFLAGS
) $(CPPFLAGS
)
35 LIBCURSES
= pdcurses.lib
37 all: $(LIBCURSES
) $(DEMOS
)
46 $(LIBCURSES
) : $(LIBOBJS
) $(PDCOBJS
)
49 +addch.obj
+addchstr.obj
+addstr.obj
+attr.obj
+beep.obj
+bkgd.obj \
50 +border.obj
+clear.obj
+color.obj
+delch.obj
+deleteln.obj
+deprec.obj \
51 +getch.obj
+getstr.obj
+getyx.obj
+inch.obj
+inchstr.obj
+initscr.obj \
52 +inopts.obj
+insch.obj
+insstr.obj
+instr.obj
+kernel.obj
+keyname.obj \
53 +mouse.obj
+move.obj
+outopts.obj
+overlay.obj
+pad.obj
+panel.obj \
54 +printw.obj
+refresh.obj
+scanw.obj
+scr_dump.obj
+scroll.obj
+slk.obj \
55 +termattr.obj
+terminfo.obj
+touch.obj
+util.obj
+window.obj
+debug.obj \
56 +pdcclip.obj
+pdcdisp.obj
+pdcgetsc.obj
+pdckbd.obj
+pdcscrn.obj \
57 +pdcsetsc.obj
+pdcutil.obj
,lib.map
58 -copy
$(LIBCURSES
) panel.lib
75 $(CC
) -e
$@
$** $(LIBCURSES
)
77 tuidemo.exe
: tuidemo.obj tui.obj
$(LIBCURSES
)
80 tui.obj
: $(demodir
)\tui.c
$(demodir
)\tui.h
$(PDCURSES_CURSES_H
)
81 $(BUILD
) -I
$(demodir
) $(demodir
)\tui.c
83 tuidemo.obj
: $(demodir
)\tuidemo.c
$(PDCURSES_CURSES_H
)
84 $(BUILD
) -I
$(demodir
) $(demodir
)\tuidemo.c
86 PLATFORM1
= Borland C
++ OS
/2 1.0
87 PLATFORM2
= Borland C
/C
++ OS
/2 1.0
88 ARCNAME
= pdc
$(VER
)bcos2
90 !include $(PDCURSES_SRCDIR
)\makedist.mif