summaryrefslogtreecommitdiff
path: root/setedit/libpcre/Makefile.bcc
blob: 0b3da22deee0be53faefb604e32d8e3b7dcb7023 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Makefile for for compiling PCRE library by Borland C++ 5.5

!ifndef _SUBMAKE

CC       = bcc32
LD       = bcc32

!ifdef DEBUG
CDEBUGFLAGS = -v -vi -y -6 -Od
!else
CDEBUGFLAGS = -O2 -6 -T -DNDEBUG
!endif

!ifdef DYNRTL
DYNRTLFLAGS = -WR
!endif

CFLAGS   = -D_BCPP -w-aus -w-ccc -a8 $(DYNRTLFLAGS) -WC -X -q $(CDEBUGFLAGS)
LDFLAGS  = $(DYNRTLDFLAGS) -WC

!endif

O        = .obj

OBJ = maketables$(O) pcre$(O) study$(O) get$(O)

all:  pcre.lib

dftables.exe: dftables.c internal.h maketables.c
	$(CC) $(CFLAGS) $*.c
	
chartables.c: dftables.exe
	dftables >chartables.c

maketables.obj: maketables.c internal.h chartables.c
	$(CC) -c $(CFLAGS) $*.c
	
get.obj: get.c internal.h
	$(CC) -c $(CFLAGS) $*.c

study.obj: study.c internal.h
	$(CC) -c $(CFLAGS) $*.c

pcre.obj: pcre.c internal.h
	$(CC) -c $(CFLAGS) $*.c

pcre.lib: $(OBJ)
	del $@
	tlib /E $@ @&&!
+$(**: = &^
+)
!

pcreposix.lib: pcreposix.obj
	del $@
	tlib /E $@ @&&!
+$(**: = &^
+)
!

pcretest.obj: pcretest.c
	$(CC) -c $(CFLAGS) $*.c

pcretest.exe: pcretest.obj
	$(LD) $(LDFLAGS) pcretest.obj pcre.lib pcreposix.lib

clean:
	-del chartables.c
	-del *.obj
	-del *.exe
	-del *.dll
	-del *.lib
	-del *.tds