Subversion Repositories MLServ

Rev

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

Rev Author Line No. Line
1 nishi 1
# $Id: Makefile 5 2024-09-25 00:19:35Z nishi $
2
 
3
include $(PWD)/Platform/$(PLATFORM).mk
4
 
4 nishi 5
MLOBJS = main.o
6
MLOBJS += server.o newlist.o
7
MLOBJS += ../Common/common.a
1 nishi 8
 
2 nishi 9
.PHONY: all clean install
1 nishi 10
.SUFFIXES: .c .o
11
 
12
all: mlserv$(EXEC)
13
 
2 nishi 14
mlserv$(EXEC): $(MLOBJS)
5 nishi 15
	$(CC) $(LDFLAGS) -o $@ $(MLOBJS) $(LIBS) $(CRYPTLIBS) -lsqlite3
1 nishi 16
 
17
.c.o:
18
	$(CC) $(CFLAGS) -c -o $@ $<
19
 
2 nishi 20
install: all
21
	mkdir -p $(PREFIX)/bin
22
	cp mlserv$(EXEC) $(PREFIX)/bin/
23
 
1 nishi 24
clean:
25
	rm -f *.o mlserv *.exe