CC = gcc
CFLAGS = -Wall -O2 
STRIP = strip
# To retain the symbol tables for debugging, comment out the previous two lines,
# and uncomment the next two lines.
#CFLAGS = -Wall -g 
#STRIP = :
LDFLAGS = -lusb-1.0

OBJ=jpeg2spf87h

all: $(OBJ)
	$(STRIP) $(OBJ)

jpeg2spf87h: jpeg2spf87h.o
	${CC} ${CFLAGS} jpeg2spf87h.o ${LDFLAGS} -o jpeg2spf87h

jpeg2spf87h.o: jpeg2spf87h.c
	${CC} ${CFLAGS} -c jpeg2spf87h.c ${LDFLAGS}
	
clean:
	rm -rf *.o jpeg2spf87h
