1 ###############################################################################
2 # $Id: Makefile.in,v 1.11 2009/03/03 15:49:35 faust Exp $
3 ###############################################################################
5 SEARCH_DIRS = -I $(DIR_INCLUDE)
7 OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
12 LDFLAGS += -shared -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg
18 $(PROG): $(OBJS) $(STGLIBS)
19 $(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
20 $(LN) -fs "`pwd`/$(PROG)" $(DIR_MOD)/$(PROG)
23 rm -f deps $(PROG) *.o tags *.*~
26 mkdir -m $(BIN_MODE) -p $(PREFIX)/usr/lib/stg
27 install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
30 rm -f $(PREFIX)/usr/lib/stg/$(PROG)
32 ifneq ($(MAKECMDGOALS),clean)
33 ifneq ($(MAKECMDGOALS),uninstall)
38 deps: $(SRCS) ../../../../../Makefile.conf
40 for file in $(SRCS); do\
41 echo "`$(CC) $(CXXFLAGS) $(DEFS) $(SEARCH_DIRS) -MM $$file` Makefile ../../../../../Makefile.conf" >> deps ;\
42 echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\