Files
hidapi/testgui/Makefile.mac
T
Alan Ott f41f06cadd Update mac implementation.
Made a Mac Application Bundle (TestGUI.app) for this application.
Handle dock actions properly for Quit and Show (single click) events.
2010-08-01 16:08:34 -04:00

36 lines
753 B
Makefile

###########################################
# Simple Makefile for HIDAPI test program
#
# Alan Ott
# Signal 11 Software
# 2010-07-03
###########################################
all: testgui
CC=gcc
CXX=g++
COBJS=../mac/hid.o
CPPOBJS=test.o mac_support.o
OBJS=$(COBJS) $(CPPOBJS)
CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags`
LIBS=`fox-config --libs` -framework IOKit -framework CoreFoundation -framework Carbon
testgui: $(OBJS)
g++ -Wall -g $^ $(LIBS) -o testgui
./copy_to_bundle.sh
#cp TestGUI.app/Contents/MacOS/testgui TestGUI.app/Contents/MacOS/tg
#cp start.sh TestGUI.app/Contents/MacOS/testgui
$(COBJS): %.o: %.c
$(CC) $(CFLAGS) $< -o $@
$(CPPOBJS): %.o: %.cpp
$(CXX) $(CFLAGS) $< -o $@
clean:
rm *.o testgui
.PHONY: clean