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