sort generating system before printing
[sppoc.git] / Pip / Makefile
blob7555a0fd2e38e0c168a750b3c7a33aa34e18c498
2 # Makefile to generate the PIP library
5 include ../Etc/Makefile.config
7 INCLUDES=-I.. $(patsubst -I./%,-I../%,$(LIBS_INCLUDES))
8 CFLAGS += $(POLYLIB_ARGS) $(INCLUDES)
9 DEPEND += $(INCLUDES)
12 # Local constants
15 SRCS=pip.c integrer.c tab.c traiter.c sol.c
16 OBJS=$(patsubst %.c,%.o,$(SRCS))
19 # Main target
22 all: libpip.a
25 # Try to include gracefully the dependency file of C
26 # A separate file is needed because of cvs management
29 ifneq (,$(wildcard $(DEPEND_FILE)))
30 include $(DEPEND_FILE)
31 endif
34 # Dependencies target
37 depend:
38 $(DEPEND) $(SRCS) > $(DEPEND_FILE)
41 # Targets for building the library
44 libpip.a: $(OBJS)
45 ar cr $@ $(OBJS)
48 # Cleaning target
51 clean:
52 rm -f core *.o libpip.a $(DEPEND_FILE)