Subversion Repositories MLServ

Rev

Rev 1 | 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 2 2024-09-07 02:00:41Z nishi $
2
 
3
include $(PWD)/Platform/$(PLATFORM).mk
4
 
2 nishi 5
MLOBJS = main.o ../Common/common.a ../Common/database.a
1 nishi 6
 
2 nishi 7
.PHONY: all clean install
1 nishi 8
.SUFFIXES: .c .o
9
 
10
all: mlserv$(EXEC)
11
 
2 nishi 12
mlserv$(EXEC): $(MLOBJS)
13
	$(CC) $(LDFLAGS) -o $@ $(MLOBJS) $(LIBS) -lsqlite3
1 nishi 14
 
15
.c.o:
16
	$(CC) $(CFLAGS) -c -o $@ $<
17
 
2 nishi 18
install: all
19
	mkdir -p $(PREFIX)/bin
20
	cp mlserv$(EXEC) $(PREFIX)/bin/
21
 
1 nishi 22
clean:
23
	rm -f *.o mlserv *.exe