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)
|
|
|
|
$(AR) r $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2006-11-27 01:40:39 +00:00
|
|
|
$(LIBNAME2): $(OBJS2)
|
|
|
|
$(AR) r $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2006-11-26 18:12:36 +00:00
|
|
|
clean::
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
|
|
|
distclean:: clean
|
|
|
|
rm -f .depend
|
|
|
|
|
|
|
|
dep depend:
|
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|