diff options
Diffstat (limited to 'contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.mac')
| -rw-r--r-- | contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.mac | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.mac b/contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.mac new file mode 100644 index 0000000..cda7d49 --- /dev/null +++ b/contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.mac | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | ########################################### | ||
| 2 | # Simple Makefile for HIDAPI test program | ||
| 3 | # | ||
| 4 | # Alan Ott | ||
| 5 | # Signal 11 Software | ||
| 6 | # 2010-07-03 | ||
| 7 | ########################################### | ||
| 8 | |||
| 9 | all: hidapi-testgui | ||
| 10 | |||
| 11 | CC=gcc | ||
| 12 | CXX=g++ | ||
| 13 | COBJS=../mac/hid.o | ||
| 14 | CPPOBJS=test.o | ||
| 15 | OBJCOBJS=mac_support_cocoa.o | ||
| 16 | OBJS=$(COBJS) $(CPPOBJS) $(OBJCOBJS) | ||
| 17 | CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags` | ||
| 18 | LDFLAGS=-L/usr/X11R6/lib | ||
| 19 | LIBS=`fox-config --libs` -framework IOKit -framework CoreFoundation -framework Cocoa | ||
| 20 | |||
| 21 | |||
| 22 | hidapi-testgui: $(OBJS) TestGUI.app | ||
| 23 | g++ -Wall -g $(OBJS) $(LIBS) $(LDFLAGS) -o hidapi-testgui | ||
| 24 | ./copy_to_bundle.sh | ||
| 25 | #cp TestGUI.app/Contents/MacOS/hidapi-testgui TestGUI.app/Contents/MacOS/tg | ||
| 26 | #cp start.sh TestGUI.app/Contents/MacOS/hidapi-testgui | ||
| 27 | |||
| 28 | $(COBJS): %.o: %.c | ||
| 29 | $(CC) $(CFLAGS) $< -o $@ | ||
| 30 | |||
| 31 | $(CPPOBJS): %.o: %.cpp | ||
| 32 | $(CXX) $(CFLAGS) $< -o $@ | ||
| 33 | |||
| 34 | $(OBJCOBJS): %.o: %.m | ||
| 35 | $(CXX) $(CFLAGS) -x objective-c++ $< -o $@ | ||
| 36 | |||
| 37 | TestGUI.app: TestGUI.app.in | ||
| 38 | rm -Rf TestGUI.app | ||
| 39 | mkdir -p TestGUI.app | ||
| 40 | cp -R TestGUI.app.in/ TestGUI.app | ||
| 41 | |||
| 42 | clean: | ||
| 43 | rm -f $(OBJS) hidapi-testgui | ||
| 44 | rm -Rf TestGUI.app | ||
| 45 | |||
| 46 | .PHONY: clean | ||
