source:
Main/trunk/Common/Makefile@
315
Last change on this file since 315 was 255, checked in by , on Oct 4, 2024 at 1:08:58 PM | |
---|---|
|
|
File size: 436 bytes |
Rev | Line | |
---|---|---|
[2] | 1 | # $Id: Makefile 255 2024-10-04 04:08:58Z 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) |
[255] | 17 | rm -f common.a |
[218] | 18 | $(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)` |
19 | ||
20 | common.lib: $(OBJS) | |
[255] | 21 | rm -f common.lib |
[215] | 22 | $(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)` |
[2] | 23 | |
[212] | 24 | .c.$(OBJ): |
[2] | 25 | $(CC) $(CFLAGS) -c -o $@ $< |
26 | ||
27 | clean: | |
[215] | 28 | rm -f *.o *.a *.lib *.obj |
Note:
See TracBrowser
for help on using the repository browser.