Line | |
---|
1 | # $Id: Makefile 255 2024-10-04 04:08:58Z nishi $
|
---|
2 |
|
---|
3 | OBJ=o
|
---|
4 | STATIC=a
|
---|
5 | AR_FLAGS=rcs
|
---|
6 | AR_PROC=cat
|
---|
7 | include $(PWD)/Platform/$(PLATFORM).mk
|
---|
8 |
|
---|
9 | .PHONY: all clean
|
---|
10 | .SUFFIXES: .c .$(OBJ)
|
---|
11 |
|
---|
12 | OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
|
---|
13 |
|
---|
14 | all: common.$(STATIC)
|
---|
15 |
|
---|
16 | common.a: $(OBJS)
|
---|
17 | rm -f common.a
|
---|
18 | $(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)`
|
---|
19 |
|
---|
20 | common.lib: $(OBJS)
|
---|
21 | rm -f common.lib
|
---|
22 | $(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
|
---|
23 |
|
---|
24 | .c.$(OBJ):
|
---|
25 | $(CC) $(CFLAGS) -c -o $@ $<
|
---|
26 |
|
---|
27 | clean:
|
---|
28 | rm -f *.o *.a *.lib *.obj
|
---|
Note:
See
TracBrowser
for help on using the repository browser.