-CFLAGS=-O0 -g -Wall -Wshadow -Werror
+CFLAGS=-Wall -Wshadow -Werror
all:
- gcc -o neonserv -O0 -g -Wall main.c -Wshadow -Werror
+ gcc -g -O2 -I. -I/usr/include/mysql -c IRCEvents.c -o IRCEvents.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c main.c -o main.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c ChanNode.c -o ChanNode.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c IRCParser.c -o IRCParser.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c ClientSocket.c -o ClientSocket.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c UserNode.c -o UserNode.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c ChanUser.c -o ChanUser.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c WHOHandler.c -o WHOHandler.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c modcmd.c -o modcmd.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c mysqlConn.c -o mysqlConn.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c bots.c -o bots.o ${CFLAGS}
+ gcc -g -O2 -I. -I/usr/include/mysql -c bot_NeonServ.c -o bot_NeonServ.o ${CFLAGS}
-library:
- gcc -o libneonserv.so
+install:
+ gcc -g -O0 -I. -I/usr/include/mysql -o neonserv *.o ${CFLAGS} -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto
+
+clean:
+ rm *.o
binary:
\ No newline at end of file