X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/6e621012d68aaa1b28c9c14eeeec6987d093c02f..2f47f304d1ffbed3869066b0cb335b7bf32a9e8d:/Makefile diff --git a/Makefile b/Makefile index 0bc8272..d994a7a 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,14 @@ ifeq ($(OPENWRT_BUILD),) #Normal system -CFLAGS=-Wall -Wextra -Wno-unused-parameter -pedantic -CFLAGS+= -Wno-unknown-warning-option -CFLAGS+= -Wformat=2 -CFLAGS+= -Wformat-truncation=2 -CFLAGS+= -Wwrite-strings -CFLAGS+= -Wnull-dereference -CFLAGS+= -Wuninitialized -CFLAGS+= -Wstrict-overflow -CFLAGS+= -Wdate-time -CFLAGS+= -Wundef -CFLAGS+= -Wpacked -CFLAGS+= -Wduplicated-branches -CFLAGS+= -Wduplicated-cond -CFLAGS+= -Wstrict-prototypes -CFLAGS+= -Wbad-function-cast -CFLAGS+= -Wold-style-definition -CFLAGS+= -MMD -O2 -I/opt/local/include -g - -LDFLAGS:=-L/opt/local/lib -LDLIBS:=-lusb-1.0 -lrt +CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g + +LDFLAGS=-L/opt/local/lib +LDLIBS=-lusb-1.0 -lrt + +ifeq ($(firstword $(origin CC)),default) CC:=gcc +endif HMLAN_OBJS:=hmcfgusb.o hmland.o util.o HMSNIFF_OBJS:=hmcfgusb.o hmuartlgw.o hmsniff.o