diff options
Diffstat (limited to 'contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.linux')
| -rw-r--r-- | contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.linux | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.linux b/contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.linux new file mode 100644 index 0000000..d32e163 --- /dev/null +++ b/contrib/SDL-3.2.8/src/hidapi/testgui/Makefile.linux | |||
| @@ -0,0 +1,32 @@ | |||
| 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=gcc | ||
| 12 | CXX=g++ | ||
| 13 | COBJS=../libusb/hid.o | ||
| 14 | CPPOBJS=test.o | ||
| 15 | OBJS=$(COBJS) $(CPPOBJS) | ||
| 16 | CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags` `pkg-config libusb-1.0 --cflags` | ||
| 17 | LIBS=-ludev -lrt -lpthread `fox-config --libs` `pkg-config libusb-1.0 --libs` | ||
| 18 | |||
| 19 | |||
| 20 | testgui: $(OBJS) | ||
| 21 | g++ -Wall -g $^ $(LIBS) -o testgui | ||
| 22 | |||
| 23 | $(COBJS): %.o: %.c | ||
| 24 | $(CC) $(CFLAGS) $< -o $@ | ||
| 25 | |||
| 26 | $(CPPOBJS): %.o: %.cpp | ||
| 27 | $(CXX) $(CFLAGS) $< -o $@ | ||
| 28 | |||
| 29 | clean: | ||
| 30 | rm *.o testgui | ||
| 31 | |||
| 32 | .PHONY: clean | ||
