Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Name: Makefile
  2. # Project: custom-class example
  3. # Author: Christian Starkjohann
  4. # Creation Date: 2008-04-06
  5. # Tabsize: 4
  6. # Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
  7. # License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
  8. # This Revision: $Id: Makefile 692 2008-11-07 15:07:40Z cs $
  9. # Concigure the following definitions according to your system.
  10. # This Makefile has been tested on Mac OS X, Linux and Windows.
  11. # Use the following 3 lines on Unix (uncomment the framework on Mac OS X):
  12. USBFLAGS = `libusb-config --cflags`
  13. USBLIBS = `libusb-config --libs`
  14. EXE_SUFFIX =
  15. # Use the following 3 lines on Windows and comment out the 3 above. You may
  16. # have to change the include paths to where you installed libusb-win32
  17. #USBFLAGS = -I/usr/local/include
  18. #USBLIBS = -L/usr/local/lib -lusb
  19. #EXE_SUFFIX = .exe
  20. NAME = qdinc
  21. OBJECTS = opendevice.o $(NAME).o
  22. CC = gcc
  23. CFLAGS = $(CPPFLAGS) $(USBFLAGS) -O -g -Wall -D_GNU_SOURCE
  24. LIBS = $(USBLIBS)
  25. PROGRAM = $(NAME)$(EXE_SUFFIX)
  26. all: $(PROGRAM)
  27. .c.o:
  28. $(CC) $(CFLAGS) -c $<
  29. $(PROGRAM): $(OBJECTS)
  30. $(CC) -o $(PROGRAM) $(OBJECTS) $(LIBS)
  31. strip: $(PROGRAM)
  32. strip $(PROGRAM)
  33. clean:
  34. rm -f *.o $(PROGRAM)