mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-21 08:56:07 -04:00
f41f06cadd
Made a Mac Application Bundle (TestGUI.app) for this application. Handle dock actions properly for Quit and Show (single click) events.
36 lines
753 B
Makefile
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
|