2006-11-27 13:32:24 +00:00
|
|
|
SRCS += $(SRCS-yes)
|
|
|
|
SRCS2 += $(SRCS2-yes)
|
2006-12-01 01:11:42 +00:00
|
|
|
CFLAGS += $(CFLAGS-yes)
|
2006-11-27 13:32:24 +00:00
|
|
|
|
2006-11-28 11:54:12 +00:00
|
|
|
OBJS = $(addsuffix .o, $(basename $(SRCS)) )
|
|
|
|
OBJS2 = $(addsuffix .o, $(basename $(SRCS2)) )
|
2006-11-26 18:12:36 +00:00
|
|
|
|
|
|
|
CFLAGS += -I. -I.. $(OPTFLAGS)
|
|
|
|
|
2006-11-27 01:40:39 +00:00
|
|
|
LIBS = $(LIBNAME) $(LIBNAME2)
|
|
|
|
|
|
|
|
all: $(LIBS)
|
2006-11-26 18:12:36 +00:00
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
2006-11-27 01:40:39 +00:00
|
|
|
$(LIBNAME2): $(OBJS2)
|
2007-02-04 19:18:26 +00:00
|
|
|
$(LIBNAME) $(LIBNAME2):
|
2006-11-27 01:40:39 +00:00
|
|
|
$(AR) r $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2006-11-26 18:12:36 +00:00
|
|
|
clean::
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
|
|
|
distclean:: clean
|
|
|
|
rm -f .depend
|
|
|
|
|
|
|
|
dep depend:
|
2007-02-01 01:09:39 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend
|
2006-11-26 18:12:36 +00:00
|
|
|
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|