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