Blame view

Software/Makefile 1.02 KB
56d9dc54   achemin1   homogénéisation a...
1
2
3
4
5
6
7
  BIN = bin
  OBJ = obj
  SRC = src
  INCLUDE = include
  CFLAGS =
  CLIBS = -lusb-1.0 -I"C:\Program Files\zLib\libusb-1.0.23\include"
  #sur le Windows d'Axel :
aee3aa1f   gperson   satané Makefile
8
  #CLIBS := ${CLIBS} -B"C:\Program Files\zLib\libusb-1.0.23\MinGW32\static"
56d9dc54   achemin1   homogénéisation a...
9
10
11
12
  GNUMAKEFLAGS = --no-print-directory
  
  gcc = gcc
  #sur le Windows d'Axel :
aee3aa1f   gperson   satané Makefile
13
  #gcc := "/mnt/c/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe"
56d9dc54   achemin1   homogénéisation a...
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  
  
  DEBUG?=0
  ifeq ($(DEBUG), 0)
  	CFLAGS = -W -Wall
  else
  	CFLAGS = -W -Wall -g -O0 -DDEBUG
  endif
  
  
  
  all : main
  
  
  version :
  	${gcc} -v
  
  main : bin libusb_wrapper ${SRC}/main.c
  	${gcc} -o ${OBJ}/$@.o -c ${SRC}/$@.c -I ${INCLUDE} ${CLIBS} ${CFLAGS}
  	${gcc} -o ${BIN}/$@.exe ${OBJ}/main.o ${OBJ}/libusb_wrapper.o ${CFLAGS} ${CLIBS}
  
  demostep : main
  	${BIN}/main.exe demo4.1
  
  libs: libusb_wrapper
  
  libusb_wrapper: obj ${SRC}/libusb_wrapper.c ${INCLUDE}/libusb_wrapper.h
  	${gcc} -o ${OBJ}/$@.o -c ${SRC}/$@.c -I ${INCLUDE} ${CLIBS} ${CFLAGS}
  
  
  
  obj :
  	@-mkdir ${OBJ}
  
  bin :
  	@-mkdir ${BIN}
  
  clean :
  	rm -rf obj/*.o
  
  mrproper: clean
  	rm -rf bin
  	rm -rf obj