Makefile.linux
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=gcc
sl@0
    12
CXX=g++
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 -Wall -g -c `fox-config --cflags` `pkg-config libusb-1.0 --cflags`
sl@0
    17
LIBS=-ludev -lrt -lpthread `fox-config --libs` `pkg-config libusb-1.0 --libs`
sl@0
    18
sl@0
    19
sl@0
    20
testgui: $(OBJS)
sl@0
    21
	g++ -Wall -g $^ $(LIBS) -o testgui
sl@0
    22
sl@0
    23
$(COBJS): %.o: %.c
sl@0
    24
	$(CC) $(CFLAGS) $< -o $@
sl@0
    25
sl@0
    26
$(CPPOBJS): %.o: %.cpp
sl@0
    27
	$(CXX) $(CFLAGS) $< -o $@
sl@0
    28
sl@0
    29
clean:
sl@0
    30
	rm *.o testgui
sl@0
    31
sl@0
    32
.PHONY: clean