Makefile.freebsd
author sl
Thu, 22 May 2014 16:46:50 +0200
changeset 22 efa6ff02287c
permissions -rw-r--r--
Sorting out and testing our display position command.
To avoid refresh artefact we will indeed need to use this feature.
It will go like that:
* Setup off screen buffer
* Swap frame buffer
     1 ###########################################
     2 # Simple Makefile for HIDAPI test program
     3 #
     4 # Alan Ott
     5 # Signal 11 Software
     6 # 2010-06-01
     7 ###########################################
     8 
     9 all: testgui
    10 
    11 CC=cc
    12 CXX=c++
    13 COBJS=../libusb/hid.o
    14 CPPOBJS=test.o
    15 OBJS=$(COBJS) $(CPPOBJS)
    16 CFLAGS=-I../hidapi -I/usr/local/include `fox-config --cflags` -Wall -g -c
    17 LDFLAGS= -L/usr/local/lib
    18 LIBS= -lusb -liconv `fox-config --libs` -pthread
    19 
    20 
    21 testgui: $(OBJS)
    22 	$(CXX) -Wall -g $^ $(LDFLAGS) -o $@ $(LIBS)
    23 
    24 $(COBJS): %.o: %.c
    25 	$(CC) $(CFLAGS) $< -o $@
    26 
    27 $(CPPOBJS): %.o: %.cpp
    28 	$(CXX) $(CFLAGS) $< -o $@
    29 
    30 clean:
    31 	rm *.o testgui
    32 
    33 .PHONY: clean