41 lines
679 B
Makefile
41 lines
679 B
Makefile
|
CC = @CC@
|
||
|
CXX = @CXX@
|
||
|
CFLAGS = -Wall @CFLAGS@
|
||
|
LIBS = -L../src/ -lircclient -lpthread @LIBS@
|
||
|
INCLUDES=-I../include
|
||
|
|
||
|
EXAMPLES=spammer censor irctest ircftp colors
|
||
|
|
||
|
all: $(EXAMPLES)
|
||
|
|
||
|
spammer: spammer.o
|
||
|
$(CC) -o spammer spammer.o $(LIBS)
|
||
|
|
||
|
colors: colors.o
|
||
|
$(CXX) -o colors colors.o $(LIBS)
|
||
|
|
||
|
irctest: irctest.o
|
||
|
$(CC) -o irctest irctest.o $(LIBS)
|
||
|
|
||
|
censor: censor.o
|
||
|
$(CXX) -o censor censor.o $(LIBS)
|
||
|
|
||
|
ircftp: ircftp.o
|
||
|
$(CXX) -o ircftp ircftp.o $(LIBS)
|
||
|
|
||
|
|
||
|
clean:
|
||
|
-rm -f $(EXAMPLES) *.o *.exe
|
||
|
|
||
|
distclean: clean
|
||
|
-rm -f Makefile *.log
|
||
|
|
||
|
|
||
|
.c.o:
|
||
|
@echo "Compiling $<"
|
||
|
@$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
|
||
|
|
||
|
.cpp.o:
|
||
|
@echo "Compiling $<"
|
||
|
@$(CXX) $(CFLAGS) $(INCLUDES) -c -o $@ $<
|