sdl

FORK: Simple Directmedia Layer
git clone https://git.neptards.moe/neptards/sdl.git
Log | Files | Refs

Makefile.mingw (726B)


      1 ###########################################
      2 # Simple Makefile for HIDAPI test program
      3 #
      4 # Alan Ott
      5 # Signal 11 Software
      6 # 2010-06-01
      7 ###########################################
      8 
      9 all: hidapi-testgui
     10 
     11 CC=gcc
     12 CXX=g++
     13 COBJS=../windows/hid.o
     14 CPPOBJS=test.o
     15 OBJS=$(COBJS) $(CPPOBJS)
     16 CFLAGS=-I../hidapi -I../../hidapi-externals/fox/include -g -c
     17 LIBS= -mwindows -lsetupapi -L../../hidapi-externals/fox/lib -Wl,-Bstatic -lFOX-1.6 -Wl,-Bdynamic -lgdi32 -Wl,--enable-auto-import -static-libgcc -static-libstdc++ -lkernel32
     18 
     19 
     20 hidapi-testgui: $(OBJS)
     21 	g++ -g $^ $(LIBS) -o hidapi-testgui
     22 
     23 $(COBJS): %.o: %.c
     24 	$(CC) $(CFLAGS) $< -o $@
     25 
     26 $(CPPOBJS): %.o: %.cpp
     27 	$(CXX) $(CFLAGS) $< -o $@
     28 
     29 clean:
     30 	rm -f *.o hidapi-testgui.exe
     31 
     32 .PHONY: clean