tools/fsusb/Makefile
changeset 2 2f55e5dd591d
equal deleted inserted replaced
1:f08135942074 2:2f55e5dd591d
       
     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 
       
    18 
       
    19 
       
    20 OPTS=-Wall -D_GNU_SOURCE
       
    21 OBJS=fsusb.o rjlhex.o memimg.o
       
    22 
       
    23 CFLAGS=$(OPTS) -I$(LIBUSB)/include
       
    24 LDFLAGS=-L$(LIBUSB)/lib -lusb
       
    25 
       
    26 # Needed for static linking under OS X:
       
    27 # LDFLAGS=-lusb -lIOKit -framework CoreFoundation
       
    28 
       
    29 
       
    30 
       
    31 all: fsusb
       
    32 
       
    33 fsusb: main.o $(OBJS)
       
    34 	$(CC) $(CFLAGS) -o $@ main.o $(OBJS) $(LDFLAGS)
       
    35 
       
    36 clean:
       
    37 	-rm fsusb *.o