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
sl@0
     1
###########################################
sl@0
     2
# Simple Makefile for HIDAPI test program
sl@0
     3
#
sl@0
     4
# Alan Ott
sl@0
     5
# Signal 11 Software
sl@0
     6
# 2010-06-01
sl@0
     7
###########################################
sl@0
     8
sl@0
     9
all: testgui
sl@0
    10
sl@0
    11
CC=cc
sl@0
    12
CXX=c++
sl@0
    13
COBJS=../libusb/hid.o
sl@0
    14
CPPOBJS=test.o
sl@0
    15
OBJS=$(COBJS) $(CPPOBJS)
sl@0
    16
CFLAGS=-I../hidapi -I/usr/local/include `fox-config --cflags` -Wall -g -c
sl@0
    17
LDFLAGS= -L/usr/local/lib
sl@0
    18
LIBS= -lusb -liconv `fox-config --libs` -pthread
sl@0
    19
sl@0
    20
sl@0
    21
testgui: $(OBJS)
sl@0
    22
	$(CXX) -Wall -g $^ $(LDFLAGS) -o $@ $(LIBS)
sl@0
    23
sl@0
    24
$(COBJS): %.o: %.c
sl@0
    25
	$(CC) $(CFLAGS) $< -o $@
sl@0
    26
sl@0
    27
$(CPPOBJS): %.o: %.cpp
sl@0
    28
	$(CXX) $(CFLAGS) $< -o $@
sl@0
    29
sl@0
    30
clean:
sl@0
    31
	rm *.o testgui
sl@0
    32
sl@0
    33
.PHONY: clean