CC            = gcc
INCLUDEFLAGS  = -I../drivers/linux/include
#CFLAGS        = -O2 -ansi -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe $(INCLUDEFLAGS)
CFLAGS        = -O2        -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe $(INCLUDEFLAGS)
LDLIBS        = -llegousbapi
LDFLAGS       = -L../drivers/linux

TARGETS       = tower_get_parm \
                tower_set_parm \
                tower_flush \
                tower_reset \
                tower_get_stat \
                tower_get_power \
                tower_get_led \
                tower_set_led \
                tower_reset_stat \
                tower_get_parm_irc \
                tower_set_parm_irc \
                tower_get_tx_speed \
                tower_set_tx_speed \
                tower_get_rx_speed \
                tower_set_rx_speed \
                tower_get_tx_state \
                tower_get_tx_carrier_frequency \
                tower_set_tx_carrier_frequency \
                tower_get_tx_carrier_duty_cycle \
                tower_set_tx_carrier_duty_cycle \
                tower_get_caps \
                tower_get_version \
                tower_get_copyright \
                tower_get_credits

all: ${TARGETS} LEDTest

LEDTest:: dasblinkenlichten.c
	$(CC) -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe $(INCLUDEFLAGS) -o LEDTest dasblinkenlichten.c

#Build all targets and link each with argtable.o
$(TARGETS):: argtable.o

#remove all binaries and intermediate files from this directory
clean:
	rm -f $(TARGETS) LEDTest *.o

