1 ###############################################################################
2 # $Id: Makefile.in,v 1.28 2009/03/03 15:50:14 faust Exp $
3 ###############################################################################
5 include ../../Makefile.conf
7 PROG = lib$(LIB_NAME).a
9 ifeq ($(STG_TIME), yes)
17 SEARCH_DIRS = -I $(DIR_INCLUDE) -I ./
19 OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
21 INST_INCS = $(addprefix $(DIR_INCLUDE)/, $(notdir $(INCS)))
22 INST_LIBS = $(DIR_LIB)/lib$(LIB_NAME)
31 $(PROG): $(OBJS) $(STGLIBS)
32 ar rc lib$(LIB_NAME).a $(OBJS)
33 ranlib lib$(LIB_NAME).a
37 cp -p $(INCS) $(DIR_INCLUDE)/stg
40 rm -f deps $(PROG) *.o *.a *.so tags *.*~
41 for file in $(INCS); do \
42 rm -f $(DIR_INCLUDE)/stg/$$file; \
46 mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
47 install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
48 mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/include/stg
49 install -m $(DATA_MODE) -o $(OWNER) $(INCS) $(PREFIX)/usr/include/stg/
52 rm -f $(PREFIX)/usr/lib/stg/$(PROG)
53 for file in $(INCS); do \
54 rm -f $(PREFIX)/usr/include/stg/$$file; \
57 ifneq ($(MAKECMDGOALS),includes)
58 ifneq ($(MAKECMDGOALS),clean)
59 ifneq ($(MAKECMDGOALS),uninstall)
65 deps: $(SRCS) ../../Makefile.conf
67 for file in $(SRCS); do\
68 echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
69 echo -e '\t$$(CC) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -c $$<' >> deps ;\