Subversion Repositories Tewi

Rev

Rev 255 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 nishi 1
# $Id: Makefile 322 2024-10-14 17:41:06Z nishi $
2
 
212 nishi 3
OBJ=o
4
STATIC=a
218 nishi 5
AR_FLAGS=rcs
215 nishi 6
AR_PROC=cat
322 nishi 7
AR_USUAL=rcs
2 nishi 8
include $(PWD)/Platform/$(PLATFORM).mk
9
 
10
.PHONY: all clean
212 nishi 11
.SUFFIXES: .c .$(OBJ)
2 nishi 12
 
212 nishi 13
OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
2 nishi 14
 
212 nishi 15
all: common.$(STATIC)
2 nishi 16
 
218 nishi 17
common.a: $(OBJS)
255 nishi 18
	rm -f common.a
322 nishi 19
	$(AR) $(AR_USUAL) $@ `echo $(OBJS) | $(AR_PROC)`
20
	$(MAYBE_RANLIB)
218 nishi 21
 
22
common.lib: $(OBJS)
255 nishi 23
	rm -f common.lib
215 nishi 24
	$(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
2 nishi 25
 
212 nishi 26
.c.$(OBJ):
2 nishi 27
	$(CC) $(CFLAGS) -c -o $@ $<
28
 
29
clean:
215 nishi 30
	rm -f *.o *.a *.lib *.obj