source:
Main/trunk/Common/Makefile@
215
Last change on this file since 215 was 215, checked in by , on Oct 3, 2024 at 4:24:43 AM | |
---|---|
|
|
File size: 348 bytes |
Line | |
---|---|
1 | # $Id: Makefile 215 2024-10-02 19:24:43Z 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.$(STATIC): $(OBJS) |
17 | $(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)` |
18 | |
19 | .c.$(OBJ): |
20 | $(CC) $(CFLAGS) -c -o $@ $< |
21 | |
22 | clean: |
23 | rm -f *.o *.a *.lib *.obj |
Note:
See TracBrowser
for help on using the repository browser.