summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.mac
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
committer3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
commit5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch)
tree8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.mac
Initial commit
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.mac46
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
9all: hidapi-testgui
10
11CC=gcc
12CXX=g++
13COBJS=../mac/hid.o
14CPPOBJS=test.o
15OBJCOBJS=mac_support_cocoa.o
16OBJS=$(COBJS) $(CPPOBJS) $(OBJCOBJS)
17CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags`
18LDFLAGS=-L/usr/X11R6/lib
19LIBS=`fox-config --libs` -framework IOKit -framework CoreFoundation -framework Cocoa
20
21
22hidapi-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
37TestGUI.app: TestGUI.app.in
38 rm -Rf TestGUI.app
39 mkdir -p TestGUI.app
40 cp -R TestGUI.app.in/ TestGUI.app
41
42clean:
43 rm -f $(OBJS) hidapi-testgui
44 rm -Rf TestGUI.app
45
46.PHONY: clean