blob: df7accfad1061e00d0c1df5e92184459ffb03e6d (
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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
#
# $Id: libdoxycfg.t,v 1.1 2001/03/19 19:27:41 root Exp $
#
# Copyright (C) 1997-2012 by Dimitri van Heesch.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation under the terms of the GNU General Public License is hereby
# granted. No representations are made about the suitability of this software
# for any purpose. It is provided "as is" without express or implied warranty.
# See the GNU General Public License for more details.
#
# Documents produced by Doxygen are derivative works derived from the
# input used in their production; they are not affected by this license.
#############################################################################
# Makefile for building ../lib/libdoxycfg.a
# Generated by tmake at 16:29, 2012/08/11
# Project: libdoxycfg
# Template: libdoxycfg.t
#############################################################################
####### Compiler, tools and options
CC = cc
CXX = c++
CFLAGS = -pipe -Wall -W -Wno-deprecated-declarations -Wno-invalid-source-encoding -g -fstack-protector
CXXFLAGS= -pipe -D__FreeBSD__=6 -DYY_TYPEDEF_YY_SIZE_T -Dyy_size_t=int -Wall -W -Wno-deprecated-declarations -Wno-invalid-source-encoding -g -fstack-protector
INCPATH = -I../qtools
AR = ar cq
RANLIB = ranlib
MOC = /usr/bin/moc
TAR = tar -cf
GZIP = gzip -9f
####### Files
HEADERS = config.h \
configoptions.h \
portable.h
SOURCES = config.cpp \
configoptions.cpp \
portable.cpp \
portable_c.c
OBJECTS = ../objects/config.o \
../objects/configoptions.o \
../objects/portable.o \
../objects/portable_c.o
SRCMOC =
OBJMOC =
DIST =
TARGET = ../lib/libdoxycfg.a
####### Implicit rules
.SUFFIXES: .cpp .cxx .cc .C .c
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: $(TARGET)
staticlib: $(TARGET)
$(TARGET): $(OBJECTS) $(OBJMOC)
-rm -f $(TARGET)
$(AR) $(TARGET) $(OBJECTS) $(OBJMOC)
ranlib $(TARGET)
moc: $(SRCMOC)
tmake:
tmake libdoxycfg.pro
dist:
$(TAR) libdoxycfg.tar libdoxycfg.pro $(SOURCES) $(HEADERS) $(DIST)
$(GZIP) libdoxycfg.tar
clean:
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(TARGET)
-rm -f *~ core
####### Compile
../objects/config.o: config.cpp \
config.h \
qtbc.h \
ftextstream.h \
version.h \
portable.h \
util.h \
sortdict.h \
types.h \
lang_cfg.h \
configoptions.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o ../objects/config.o config.cpp
../objects/configoptions.o: configoptions.cpp \
configoptions.h \
config.h \
qtbc.h \
ftextstream.h \
portable.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o ../objects/configoptions.o configoptions.cpp
../objects/portable.o: portable.cpp \
portable.h \
debug.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o ../objects/portable.o portable.cpp
../objects/portable_c.o: portable_c.c
$(CC) -c $(CFLAGS) $(INCPATH) -o ../objects/portable_c.o portable_c.c
LEX = /usr/bin/flex
YACC = /usr/bin/bison
####################
config.cpp: config.l \
config.h \
qtbc.h \
ftextstream.h \
version.h \
portable.h \
util.h \
sortdict.h \
types.h \
lang_cfg.h \
configoptions.h
$(LEX) -PconfigYY -t config.l >config.cpp
configoptions.cpp: config.xml
python configgen.py config.xml >configoptions.cpp
|