X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fhdw-sniff.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=80353aee15fb19edc375f98831665efe01438d25;hp=05039089b279b3f3e13f93cdb099be6202045188;hb=c9575c4e105d074120e573587cbf7e7de9a0b5ab;hpb=4496e49cea69d40228b53c6a66a8a4b22bbcb1b7 diff --git a/Makefile b/Makefile index 0503908..80353ae 100644 --- a/Makefile +++ b/Makefile @@ -1,28 +1,29 @@ -# Makefile of hdw-sniff +# hdw-sniff Makefile, created Fri May 27 20:42:55 CEST 2005 INCLUDEDIR = /usr/include - CFLAGS = -DDEBUG -O3 -Wall -LIBS = -lpcap +LIBS = -lm -lncurses -lpcap + +OBJS = network.o event.o list.o display.o input.o +OBJS2 = hdw-sniff -API_OBJS = network.o event.o input.o display.o audio.o +links: + ln -sf ../api/network/network.{c,h} . + ln -sf ../api/event/event.{c,h} . + ln -sf ../api/list/list.{c,h} . + ln -sf ../api/display/display.{c,h} . + ln -sf ../api/input/input.{c,h} . -api: links $(API_OBJS) +hdw-sniff: links $(OBJS) + $(CC) $(CFLAGS) -o $@ $(OBJS) main.c parse.c $(LIBS) -hdw-sniff: $(API_OBJS) - $(CC) $(CFLAGS) -o $@ $(API_OBJS) hdw-sniff.c $(LIBS) all: hdw-sniff clean: - rm -f $(API_OBJS) {event,input,display,audio,network,list}.{c,h} - rm -f hdw-sniff - -links: - ln -sf ../api/event/event.{c,h} . - ln -sf ../api/input/input.{c,h} . - ln -sf ../api/display/display.{c,h} . - ln -sf ../api/audio/audio.{c,h} . - ln -sf ../api/network/network.{c,h} . - ln -sf ../api/list/list.{c,h} . + rm -f $(OBJS) $(OBJS2) remake: clean all + +install: + mkdir -p /usr/bin + cp hdw-sniff /usr/bin