Restructuring of declararations required because of include conflicts when
[dyninst.git] / igen / make.module.tmpl
1 #
2 # Common makefile template for igen.  This file is not intended to
3 # be a useful Makefile in isolation; instead, it should be included
4 # from within an architecture-specific Makefile.
5 #
6 # $Id: make.module.tmpl,v 1.8 1999/08/09 05:38:41 csserra Exp $
7 #
8
9 USES_FLEX = true
10
11 TARGET        = igen
12
13 SRCS         += ../src/main.C \
14                 parser.C \
15                 scanner.C \
16                 ../src/interface_spec.C \
17                 ../src/templates.C 
18
19 LIBS         += -lpdutil
20 SYSLIBS      += $(FLEX_LIB)
21
22 ifdef CROSSCOMPILER
23 SYSLIBS      += -lstdc++
24 endif
25
26 CXXFLAGS     += $(USEFULWARNINGS) 
27 TFLAGS       += $(USEFULWARNINGS) 
28
29 IFLAGS       += -I../$(PLATFORM) -I../src
30
31 all:    $(TARGET)
32
33 templates.o: ../src/templates.C 
34         $(CXX) $(TFLAGS) -c ../src/templates.C