Mercurial > repos > ktnyt > gembassy
comparison GEMBASSY-1.0.3/gsoap/src/MakefileManual @ 0:8300eb051bea draft
Initial upload
author | ktnyt |
---|---|
date | Fri, 26 Jun 2015 05:19:29 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8300eb051bea |
---|---|
1 # gSOAP soapcpp2 Makefile by Robert van Engelen, Genivia Inc. | |
2 # Use this to build the soapcpp2 tool when autoconf/automake are not | |
3 # available. | |
4 # | |
5 # Dependences: | |
6 # Flex (or Lex) | |
7 # Bison | |
8 # | |
9 # Mac OS X universal binary: | |
10 # CC=gcc -arch i386 -arch ppc | |
11 CC=gcc | |
12 # use LEX=flex -l or LEX=lex | |
13 LEX=flex -l | |
14 # use YACC=bison or YACC=yacc -d -v -s soapcpp2_yacc | |
15 YACC=bison | |
16 # For static linkage with Flex use: | |
17 LIBS=/usr/lib/libfl.a | |
18 # For static linkage with Lex use: | |
19 # LIBS=/usr/lib/libl.a | |
20 COFLAGS=-O1 | |
21 # For static linking use: | |
22 # COFLAGS=-O1 -static | |
23 # For debugging use: | |
24 # COFLAGS=-g | |
25 CWFLAGS=-Wall | |
26 # | |
27 CIFLAGS= | |
28 # use -DWITH_BISON or -DWITH_YACC | |
29 # use -DWITH_FLEX or -DWITH_LEX | |
30 CMFLAGS=-DWITH_BISON -DWITH_FLEX | |
31 # | |
32 CFLAGS= $(CWFLAGS) $(COFLAGS) $(CIFLAGS) $(CMFLAGS) | |
33 # | |
34 soapcpp2: soapcpp2.h soapcpp2_yacc.tab.o symbol2.o error2.o lex.yy.o init2.o soapcpp2.o | |
35 $(CC) $(CFLAGS) symbol2.o error2.o soapcpp2_yacc.tab.o lex.yy.o init2.o soapcpp2.o $(LIBS) -o $@ | |
36 cp -f soapcpp2 ../bin | |
37 soapcpp2_yacc.tab.c: soapcpp2_yacc.y soapcpp2.h error2.h | |
38 $(YACC) -d -v soapcpp2_yacc.y | |
39 lex.yy.c: soapcpp2_yacc.tab.h soapcpp2_yacc.tab.c soapcpp2_lex.l | |
40 $(LEX) soapcpp2_lex.l | |
41 .c.o: soapcpp2.h soapcpp2_yacc.tab.h error2.h | |
42 $(CC) $(CFLAGS) -c $< | |
43 .PHONY: clean distclean | |
44 clean: | |
45 rm -f *.o | |
46 distclean: | |
47 rm -f soapcpp2 *.o lex.yy.* soapcpp2_yacc.tab.h soapcpp2_yacc.tab.c y.tab.* *.output |