source:
Main/trunk/Common/Makefile@
218
Last change on this file since 218 was 218, checked in by , on Oct 3, 2024 at 4:59:49 AM | |
---|---|
|
|
File size: 402 bytes |
Rev | Line | |
---|---|---|
[2] | 1 | # $Id: Makefile 218 2024-10-02 19:59:49Z nishi $ |
2 | ||
[212] | 3 | OBJ=o |
4 | STATIC=a | |
[218] | 5 | AR_FLAGS=rcs |
[215] | 6 | AR_PROC=cat |
[2] | 7 | include $(PWD)/Platform/$(PLATFORM).mk |
8 | ||
9 | .PHONY: all clean | |
[212] | 10 | .SUFFIXES: .c .$(OBJ) |
[2] | 11 | |
[212] | 12 | OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ) |
[2] | 13 | |
[212] | 14 | all: common.$(STATIC) |
[2] | 15 | |
[218] | 16 | common.a: $(OBJS) |
17 | $(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)` | |
18 | ||
19 | common.lib: $(OBJS) | |
[215] | 20 | $(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)` |
[2] | 21 | |
[212] | 22 | .c.$(OBJ): |
[2] | 23 | $(CC) $(CFLAGS) -c -o $@ $< |
24 | ||
25 | clean: | |
[215] | 26 | rm -f *.o *.a *.lib *.obj |
Note:
See TracBrowser
for help on using the repository browser.