File: Makefile.win32-msvc

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 (112 lines) | stat: -rw-r--r-- 1,749 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
#############################################################################
# Makefile for building sip
# Generated by tmake at 16:09, 2001/08/10
#     Project: sip
#    Template: app
#############################################################################

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

CC	=	cl
CXX	=	cl
CFLAGS	=	-nologo -W3 -O1
CXXFLAGS=	-nologo -W3 -O1
INCPATH	=	-I"."
LINK	=	link
LFLAGS	=	/NOLOGO /SUBSYSTEM:console
LIBS	=	
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
INTERFACE_DECL_PATH = .

####### Implicit rules

.SUFFIXES: .cpp .cxx .cc .c

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

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

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

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

####### Build rules

all: $(TARGET)

$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
	    $(OBJECTS) $(OBJMOC) $(LIBS)
<<

moc: $(SRCMOC)

tmake: Makefile.win32-msvc

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

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

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

####### 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