Subversion Repositories MLServ

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

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