diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-26 10:14:52 +0100 | 
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-26 10:14:52 +0100 | 
| commit | 257c0d9b563f91d6613a8dd8c6bb4be0a1366036 (patch) | |
| tree | c50e75a48654dad22bcb25000691f0b976523019 /Makefile | |
Initial import
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..594d5ee --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CFLAGS=-O2 +CFLAGS+=-g -Wall -Werror +# +# Detect if we're on windows or linux: +# +ifeq ($(OS),Windows_NT) +	CC=g++ +	CFLAGS+= +	LIBS+=-static-libgcc -lsetupapi +	EXE=.exe +else +	CC=gcc +	CFLAGS+=`pkg-config --cflags libudev` +	LIBS+=`pkg-config --libs libudev` +	EXE= +endif + +all: +	${CC} ${CFLAGS} test/test.c libusbhp/libusbhp.c -o detect${EXE} ${LIBS}  | 
