X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=05039089b279b3f3e13f93cdb099be6202045188;hb=79a24c19a7b1e29e527d00c19f97b80a5dcf0647;hp=0000000000000000000000000000000000000000;hpb=cd581a3e864957fdb30ee1987734e8abd8debf8c;p=my-code%2Fhdw-sniff.git diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0503908 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +# Makefile of hdw-sniff + +INCLUDEDIR = /usr/include + +CFLAGS = -DDEBUG -O3 -Wall +LIBS = -lpcap + +API_OBJS = network.o event.o input.o display.o audio.o + +api: links $(API_OBJS) + +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} . + +remake: clean all