cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

Makefile (883B)


      1GEARBOY_SRC=../../../src
      2GEARBOY_AUDIO_SRC=../../audio-shared
      3GEARBOY_RPI_SRC=../../raspberrypi
      4
      5include $(GEARBOY_RPI_SRC)/Makefile.common
      6
      7CFLAGS+=-Wall -O3 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DGEARBOY_DISABLE_DISASSEMBLER
      8
      9LDFLAGS+=-L$(SDKSTAGE)/opt/vc/lib/ -lbrcmEGL -lbrcmGLESv2 -lopenmaxil -lvcos -lvchiq_arm -lm -lrt -lconfig++ -lbcm_host `sdl2-config --libs`
     10
     11INCLUDES+=-I$(SDKSTAGE)/opt/vc/include/ -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux  -I$(GEARBOY_SRC) -I./
     12
     13.SECONDARY: $(OBJS)
     14
     15all: $(BIN) $(LIB)
     16
     17%.o: %.cpp
     18	@rm -f $@
     19	$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@
     20
     21$(BIN): $(OBJS)
     22	$(CC) -o $@ -Wl,--whole-archive $(OBJS) $(LDFLAGS) -lstdc++ -Wl,--no-whole-archive -rdynamic
     23
     24clean:
     25	for i in $(OBJS); do (if test -e "$$i"; then ( rm $$i ); fi ); done
     26	@rm -f $(BIN) $(LIB)