source:
Main/2.03E/Common/Makefile@
254
Last change on this file since 254 was 254, checked in by , on Oct 4, 2024 at 1:08:33 PM | |
---|---|
|
|
File size: 436 bytes |
Rev | Line | |
---|---|---|
[2] | 1 | # $Id: Makefile 254 2024-10-04 04:08:33Z 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) |
[254] | 17 | rm -f common.a |
[218] | 18 | $(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)` |
19 | ||
20 | common.lib: $(OBJS) | |
[254] | 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.