Rev 215 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# $Id: Makefile 218 2024-10-02 19:59:49Z nishi $
OBJ=o
STATIC=a
AR_FLAGS=rcs
AR_PROC=cat
include $(PWD)/Platform/$(PLATFORM).mk
.PHONY: all clean
.SUFFIXES: .c .$(OBJ)
OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
all: common.$(STATIC)
common.a: $(OBJS)
$(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)`
common.lib: $(OBJS)
$(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
.c.$(OBJ):
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -f *.o *.a *.lib *.obj