This repository has been archived on 2024-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
libircclient/examples/Makefile

41 lines
750 B
Makefile
Raw Permalink Normal View History

2023-08-07 05:44:19 -04:00
CC = gcc
CXX = g++
CFLAGS = -Wall -g -O2 -O3 -DENABLE_IPV6 -DENABLE_THREADS -D_REENTRANT -DENABLE_SSL
LIBS = -L../src/ -lircclient -lpthread -lssl -lcrypto -lnsl
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 $@ $<