Synopsis - Cross-Reference
File: /Synopsis/Parsers/Cxx/Makefile.in1# 2# Copyright (C) 2003 Stefan Seefeld 3# All rights reserved. 4# Licensed to the public under the terms of the GNU LGPL (>= 2), 5# see the file COPYING for details. 6# 7 8SHELL := /bin/sh 9 10srcdir := @srcdir@ 11builddir:= @builddir@ 12 13PYTHON := @PYTHON@ 14SYNOPSIS:= $(PYTHON) synopsis.py 15 16CXX := @CXX@ 17LDSHARED:= @LDSHARED@ 18MAKEDEP := $(CXX) -M 19CPPFLAGS:= @CPPFLAGS@ -I $(srcdir) 20CPPFLAGS+= @SYN_CPP@ -I @PYTHON_INCLUDE@ 21CXXFLAGS:= @CXXFLAGS@ 22LDFLAGS := @LDFLAGS@ 23LIBS := @SYN_LIBS@ @LIBS@ 24LIBRARY_EXT := @LIBEXT@ 25 26TARGET := ParserImpl$(LIBRARY_EXT) 27 28SRC := ASG.cc Types.cc Walker.cc Builder.cc Dictionary.cc TypeIdFormatter.cc \ 29 Decoder.cc Lookup.cc Filter.cc Translator.cc SXRGenerator.cc ParserImpl.cc 30HDR := $(patsubst $(srcdir)/%, %, $(wildcard $(srcdir)/*.hh)) 31OBJ := $(patsubst %.cc, %.o, $(SRC)) 32DEP := $(patsubst %.cc, %.d, $(SRC)) 33 34vpath %.cc $(srcdir) 35vpath %.c $(srcdir) 36vpath %.h $(srcdir) 37vpath %.hh $(srcdir) 38 39all: $(TARGET) 40 41doc: 42 43%.d: %.cc 44 @echo generating dependencies for $(<F) 45 $(SHELL) -ec '$(MAKEDEP) $(CPPFLAGS) $< | sed "s,$(*F)\\.o[ :]*,$*\\.d $*\\.o : ,g" > $@' 46 47%.o: %.cc 48 @echo compiling $(@F) 49 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< 50 51Makefile: $(srcdir)/Makefile.in 52 ./config.status --file Makefile 53 54$(TARGET): $(OBJ) 55 $(LDSHARED) $(LDFLAGS) -o $@ $^ $(LIBS) 56 57clean : 58 rm -f *~ *.o *.d *.dll *.so *core *.pyc *.pyo base_lib 59 60ifeq (,$(filter $(MAKECMDGOALS), depend clean distclean)) 61-include $(DEP) 62endif