libnfc/macosx/Makefile
Romuald Conty eccb9d3d3b Fix rs232.* under linux.
Fix merged code to be C99 compiliant.
Try to fix dev_arygon under linux (could not be tested here, sorry).
Try to fix MacOSX makefile (could not be tested here, sorry).
Adjust src/Makefile.am to compile/dist all new files.
2009-06-11 10:16:27 +00:00

41 lines
1.2 KiB
Makefile

###############################################
# Mac OS X settings
###############################################
LIBPCSC_HEADERS=-I/System/Library/Frameworks/PCSC.framework/Headers
LIBPCSC_LIB=-framework PCSC
LIBUSB_HEADERS=`libusb-config --cflags`
LIBUSB_LIB=`libusb-config --libs`
LIBNFC_TYPE=dylib
LIBNFC_CFLAGS=-dynamiclib
LIBNFC_LINK=
###############################################
# General settings
###############################################
LIBNFC_LDFLAGS=$(LIBPCSC_LIB) $(LIBUSB_LIB)
LIBNFC_PATH=..
VPATH=$(LIBNFC_PATH)
###############################################
# Compiler settings
###############################################
CC = gcc
LD = gcc
CFLAGS = -fPIC -Wall -O4 $(LIBPCSC_HEADERS) $(LIBUSB_HEADERS)
LDFLAGS = -fPIC -Wall -O4
OBJS = dev_pn531.o dev_pn533.o dev_acr122.o dev_arygon.o bitutils.o libnfc.o rs232.o
HEADERS = devices.h bitutils.h defines.h libnfc.h
LIBNFC = libnfc.$(LIBNFC_TYPE)
EXES = anticol emulate list mftool relay
all: $(LIBNFC) $(EXES)
libnfc.$(LIBNFC_TYPE): $(OBJS)
$(LD) $(LDFLAGS) -o $(LIBNFC) $(LIBNFC_CFLAGS) $(LIBNFC_LDFLAGS) $(OBJS)
% : %.c $(LIBNFC)
$(LD) $(LDFLAGS) -o $@ $< -L. -lnfc $(LIBNFC_LINK)
clean:
rm -f $(OBJS) $(LIBNFC) $(EXES)