Subversion Repositories IRCServ

Rev

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

Rev Author Line No. Line
1 nishi 1
# $Id: Makefile 10 2024-08-26 13:37:23Z nishi $
2
 
3
include $(PWD)/Platform/$(PLATFORM).mk
4
 
10 nishi 5
.PHONY: all clean install
1 nishi 6
.SUFFIXES: .c .o
7
 
10 nishi 8
OBJS = version.o main.o util.o socket.o db.o $(EXTOBJS)
1 nishi 9
 
10
all: ircserv$(EXEC)
11
 
12
ircserv$(EXEC): $(OBJS)
13
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
14
 
15
.c.o:
16
	$(CC) $(CFLAGS) -c -o $@ $<
17
 
10 nishi 18
install:
19
	cp ircserv $(PREFIX)/bin/
20
 
1 nishi 21
clean:
5 nishi 22
	rm -f *.exe ircserv *.o */*.o