src/hidapi/ios/Makefile-manual
author Sam Lantinga <slouken@libsdl.org>
Tue, 16 Oct 2018 08:29:27 -0700
changeset 12332 c80f702e4b8b
parent 12098 8eb14aba4e87
permissions -rw-r--r--
Support vibration magnitude on Android 8.0 (thanks Rachel!)
slouken@12098
     1
###########################################
slouken@12098
     2
# Simple Makefile for HIDAPI test program
slouken@12098
     3
#
slouken@12098
     4
# Alan Ott
slouken@12098
     5
# Signal 11 Software
slouken@12098
     6
# 2010-07-03
slouken@12098
     7
###########################################
slouken@12098
     8
slouken@12098
     9
all: hidtest
slouken@12098
    10
slouken@12098
    11
CC=gcc
slouken@12098
    12
CXX=g++
slouken@12098
    13
COBJS=hid.o
slouken@12098
    14
CPPOBJS=../hidtest/hidtest.o
slouken@12098
    15
OBJS=$(COBJS) $(CPPOBJS)
slouken@12098
    16
CFLAGS+=-I../hidapi -Wall -g -c 
slouken@12098
    17
LIBS=-framework CoreBluetooth -framework CoreFoundation
slouken@12098
    18
slouken@12098
    19
slouken@12098
    20
hidtest: $(OBJS)
slouken@12098
    21
	g++ -Wall -g $^ $(LIBS) -o hidtest
slouken@12098
    22
slouken@12098
    23
$(COBJS): %.o: %.c
slouken@12098
    24
	$(CC) $(CFLAGS) $< -o $@
slouken@12098
    25
slouken@12098
    26
$(CPPOBJS): %.o: %.cpp
slouken@12098
    27
	$(CXX) $(CFLAGS) $< -o $@
slouken@12098
    28
slouken@12098
    29
clean:
slouken@12098
    30
	rm -f *.o hidtest $(CPPOBJS)
slouken@12098
    31
slouken@12098
    32
.PHONY: clean