Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This file is part of fsusb_picdem
  2. #
  3. # fsusb_picdem is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 2 of the License, or
  6. # (at your option) any later version.
  7. #
  8. # fsusb_picdem is distributed in the hope that it will be useful, but
  9. # WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. # General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with fsusb_picdem; if not, write to the Free Software
  15. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. # 02110-1301, USA
  17. OPTS=-Wall -D_GNU_SOURCE
  18. OBJS=fsusb.o rjlhex.o memimg.o
  19. CFLAGS=$(OPTS) -I$(LIBUSB)/include
  20. LDFLAGS=-L$(LIBUSB)/lib -lusb
  21. # Needed for static linking under OS X:
  22. # LDFLAGS=-lusb -lIOKit -framework CoreFoundation
  23. all: fsusb
  24. fsusb: main.o $(OBJS)
  25. $(CC) $(CFLAGS) -o $@ main.o $(OBJS) $(LDFLAGS)
  26. clean:
  27. -rm fsusb *.o