[go: up one dir, main page]

File: Makefile.bcc

package info (click to toggle)
libcommoncpp2 1.0.13-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,740 kB
  • ctags: 2,860
  • sloc: cpp: 18,857; sh: 8,451; ansic: 1,546; makefile: 299; xml: 5
file content (28 lines) | stat: -rw-r--r-- 691 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# GNU Makefile to build CommonC++ using Borland CC 5.5.1

prefix = c:\\borland
includedir = $(prefix)\\include
bindir = $(prefix)\\bin
libdir = $(prefix)\\lib

BCC = bcc32.exe -tWM -I..\\win32 -I..\\common -I..\\posix -I..\\include -I$(includedir)
ILIB = ilink32.exe -c -Tpd -L..\\win32 -L..\\common -L$(libdir)
ILINK = ilink32.exe -c -Tpe -L..\\win32 -L..\\common -L$(libdir)
IMPLIB = implib.exe

LIBS = ccxx ccstd cw32mt import32

%.obj: %.cpp
	$(BCC) -c $<

%.dll %.lib:
	$(ILIB) c0d32 $^, $@, ,$(LIBS)
	$(IMPLIB) $*.lib $*.dll

%.exe: %.obj
	$(ILINK) c0x32 $^, $@, ,$(LIBS)

all:  tcp.exe tcpthread.exe bug1.exe

clean:
	$(RM) *.exe *.dll *.lib *.ilc *.ild *.ilf *.ils *.map *.tds *.obj