X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Makefile;h=06077532d936d475a88718f1c50006a27925eaa4;hb=7aa185f7ffbfb86dd631682014d3397c5ca82342;hp=4d7b6a16ec99b8fefd0d5377b876f7def7c40607;hpb=c00b46344cce7b05d6e0db74359de1971d2d09ec;p=nbtscanner diff --git a/Makefile b/Makefile index 4d7b6a1..0607753 100644 --- a/Makefile +++ b/Makefile @@ -2,19 +2,17 @@ # note that mysql_config is braindamaged ;-) CC=gcc -CFLAGS=-g -Wall "`mysql_config --cflags | tr -d \'`" +CFLAGS=-O6 -Wall -I/usr/include/mysql/ -LIBS=`mysql_config --libs | tr -d \'` # '` -LDFLAGS=-lefence +LIBS=-L/usr/local/lib/mysql -lmysqlclient -lnsl -lm -lz -lcrypt +LDFLAGS= # # *** end of configuration *** # -# due to some icky programming, we will have to add all the .o files everywhere. - OBJSN=nbtscanner.o mysql_interface.o configfile.o nmb.o stats.o socket.o util.o id_list.o -OBJSO=outputfile.o mysql_interface.o configfile.o nmb.o stats.o socket.o util.o id_list.o +OBJSO=outputfile.o mysql_interface.o configfile.o all: nbtscanner outputfile nbtscanner: $(OBJSN)