sdl

FORK: Simple Directmedia Layer
git clone https://git.neptards.moe/neptards/sdl.git
Log | Files | Refs

Makefile.mac (1072B)


      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