Atlas - Makefile.mac
Home / ext / SDL / src / hidapi / testgui Lines: 1 | Size: 1072 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]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 47[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.