linux_joystick_helloworld

Linux joystick example
git clone https://0xdd.org/code/linux_joystick_helloworld.git
Log | Files | Refs | LICENSE

Makefile (291B)


      1 # 2018 David DiPaola
      2 # licensed under CC0 (public domain, see https://creativecommons.org/publicdomain/zero/1.0/)
      3 
      4 BIN = linux_joystick_helloworld
      5 
      6 _CFLAGS = -Wall -Wextra \
      7 	$(CFLAGS)
      8 
      9 .PHONY: all
     10 all: $(BIN)
     11 
     12 $(BIN): main.c
     13 	$(CC) $(_CFLAGS) $< -o $@
     14 
     15 .PHONY: clean
     16 clean:
     17 	rm -rf $(BIN)
     18