Line | |
---|
1 | # $Id: Makefile 182 2024-09-27 12:55:12Z nishi $
|
---|
2 |
|
---|
3 | include $(PWD)/Platform/$(PLATFORM).mk
|
---|
4 |
|
---|
5 | .PHONY: all clean
|
---|
6 | .SUFFIXES: .c .o
|
---|
7 |
|
---|
8 | OBJS = version.o main.o config.o server.o http.o module.o strptime.o $(EXTOBJS) $(PREOBJS)
|
---|
9 |
|
---|
10 | all: tewi$(EXEC) $(TARGET)
|
---|
11 |
|
---|
12 | tewi_strip$(EXEC): tewi$(EXEC)
|
---|
13 |
|
---|
14 | tewi$(EXEC): $(OBJS) ../Common/common.a
|
---|
15 | $(CC) $(LDFLAGS) $(EXTLDFLAGS) -o $@ $(OBJS) $(EXTLIBS) $(LIBS) ../Common/common.a
|
---|
16 | $(SERVADD)
|
---|
17 |
|
---|
18 | tewi.pbp: tewi_strip$(EXEC) param.sfo
|
---|
19 | pack-pbp $@ param.sfo NULL NULL NULL NULL NULL tewi_strip$(EXEC) NULL
|
---|
20 |
|
---|
21 | param.sfo:
|
---|
22 | mksfoex -d MEMSIZE=1 'Tewi HTTPd' $@
|
---|
23 |
|
---|
24 | .c.o:
|
---|
25 | $(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $<
|
---|
26 |
|
---|
27 | tewi.res: tewi.rc ../Binary/tewi.ico
|
---|
28 | $(WINDRES) tewi.rc -O coff -o $@
|
---|
29 |
|
---|
30 | clean:
|
---|
31 | rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp
|
---|
Note:
See
TracBrowser
for help on using the repository browser.