File: Makefile.win32-borland

package info (click to toggle)
sip 2.5-2.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,340 kB
  • ctags: 1,472
  • sloc: ansic: 11,902; sh: 6,482; yacc: 1,987; cpp: 540; lex: 423; makefile: 104
file content (117 lines) | stat: -rw-r--r-- 1,854 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#############################################################################
# Makefile for building sip
# Generated by tmake at 16:09, 2001/08/10
#     Project: sip
#    Template: app
#############################################################################

!if !$d(BCB)
BCB = $(MAKEDIR)\..
!endif

####### Compiler, tools and options

CC	=	bcc32
CXX	=	bcc32
CFLAGS	=	-w -O2
CXXFLAGS=	-w -O2
INCPATH	=	-I"."
LINK	=	ilink32
LFLAGS	=	-L$(BCB)\lib -c -x -Gn -ap -Tpe c0x32.obj
LIBS	=	import32.lib cw32.lib
MOC	=	moc
UIC	=	uic

ZIP	=	zip -r -9

####### Files
HEADERS =	sip.h \
		parser.h
SOURCES =	main.c \
		transform.c \
		gencode.c \
		heap.c \
		parser.c \
		lexer.c
OBJECTS =	main.obj \
		transform.obj \
		gencode.obj \
		heap.obj \
		parser.obj \
		lexer.obj
INTERFACES =	
UICDECLS =	
UICIMPLS =	
SRCMOC	=	
OBJMOC	=	
DIST	=	
TARGET	=	sip.exe
DEF		=	
INTERFACE_DECL_PATH = .

####### Implicit rules

.SUFFIXES: .cpp .cxx .cc .c

.cpp.obj:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $<

.cxx.obj:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $<

.cc.obj:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $<

.c.obj:
	$(CC) -c $(CFLAGS) $(INCPATH) -o$@ $<

####### Build rules

all: $(TARGET)

$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
	$(LINK) @&&|
	    $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),,$(LIBS),$(DEF)
|

moc: $(SRCMOC)

tmake: Makefile.win32-borland

Makefile.win32-borland: sip.pro
	tmake sip.pro -o Makefile.win32-borland

dist:
	$(ZIP) sip.zip sip.pro $(SOURCES) $(HEADERS) $(DIST) $(DEF)

clean:
	-del main.obj
	-del transform.obj
	-del gencode.obj
	-del heap.obj
	-del parser.obj
	-del lexer.obj
	-del $(TARGET)
	-del sip.tds

####### Compile

main.obj: main.c \
		sip.h

transform.obj: transform.c \
		sip.h

gencode.obj: gencode.c \
		sip.h

heap.obj: heap.c \
		sip.h

parser.obj: parser.c \
		sip.h

lexer.obj: lexer.c \
		sip.h \
		parser.h