Subversion Repositories MLServ

Rev

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

# $Id: Makefile 2 2024-09-07 02:00:41Z nishi $

include $(PWD)/Platform/$(PLATFORM).mk

MLOBJS = main.o ../Common/common.a ../Common/database.a

.PHONY: all clean install
.SUFFIXES: .c .o

all: mlserv$(EXEC)

mlserv$(EXEC): $(MLOBJS)
        $(CC) $(LDFLAGS) -o $@ $(MLOBJS) $(LIBS) -lsqlite3

.c.o:
        $(CC) $(CFLAGS) -c -o $@ $<

install: all
        mkdir -p $(PREFIX)/bin
        cp mlserv$(EXEC) $(PREFIX)/bin/

clean:
        rm -f *.o mlserv *.exe