Blame | Last modification | View Log | Download
############################################ Simple Makefile for HIDAPI test program## Alan Ott# Signal 11 Software# 2010-07-03###########################################all: hidtestCC=gccCXX=g++COBJS=hid.oCPPOBJS=../hidtest/hidtest.oOBJS=$(COBJS) $(CPPOBJS)CFLAGS+=-I../hidapi -Wall -g -cLIBS=-framework IOKit -framework CoreFoundationhidtest: $(OBJS)g++ -Wall -g $^ $(LIBS) -o hidtest$(COBJS): %.o: %.c$(CC) $(CFLAGS) $< -o $@$(CPPOBJS): %.o: %.cpp$(CXX) $(CFLAGS) $< -o $@clean:rm -f *.o hidtest $(CPPOBJS).PHONY: clean