Subversion Repositories Tewi

Rev

Rev 48 | Rev 62 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 nishi 1
# $Id: Makefile 54 2024-09-18 12:15:57Z nishi $
2
 
3
include $(PWD)/Platform/$(PLATFORM).mk
4
 
5
.PHONY: all clean
6
.SUFFIXES: .c .o
7
 
48 nishi 8
OBJS = version.o main.o config.o server.o http.o module.o strptime.o $(EXTOBJS) $(PREOBJS)
2 nishi 9
 
54 nishi 10
all: tewi$(EXEC) $(INSTALLER)
2 nishi 11
 
54 nishi 12
install.exe: tewi$(EXEC) install.nsi
13
	makensis install.nsi
14
 
3 nishi 15
tewi$(EXEC): $(OBJS) ../Common/common.a
44 nishi 16
	$(CC) $(LDFLAGS) $(EXTLDFLAGS) -o $@ $(OBJS) $(EXTLIBS) $(LIBS) ../Common/common.a
2 nishi 17
 
18
.c.o:
44 nishi 19
	$(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $<
2 nishi 20
 
48 nishi 21
tewi.res: tewi.rc tewi.ico
22
	$(WINDRES) tewi.rc -O coff -o $@
23
 
2 nishi 24
clean:
25
	rm -f *.o tewi *.exe