nes-proj/tools/sensinode/nano_usb_programmer/Rules.make

15 lines
372 B
Plaintext
Raw Normal View History

ifeq "$(PLATFORM)" "linux"
CC=gcc
CFLAGS= -I. -I./ftdi_linux -L. -L./ftdi_linux -DPLATFORM_LINUX
LDFLAGS= -lftd2xx -Wl,-rpath /usr/local/lib
SOURCES=main.c prog.c cdi.c ihex.c
SUFFIX=
else
CC=gcc
CFLAGS=-I. -I./ftdi_win32 -L. -L./ftdi_win32 -DPLATFORM_WINDOWS
CFLAGS+= -mwin32
LDFLAGS=ftdi_win32/ftd2xx.lib -lkernel32
SOURCES=main.c prog.c cdi.c ihex.c
SUFFIX=.exe
endif