Subversion Repositories IRCServ

Rev

Rev 7 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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