Das Programmierspiel von der Gulasch-Programmier-Nacht 11

(Latest mirror + merged latest fork by qr4 on Lua 5.3)

Entropia info page https://entropia.de/GPN11:Programmierspiel (dead links)
Origin Gitlab
https://code.nerd2nerd.org/n2n/WeltraumProgrammierNacht

Makefile 361B

12345678910111213141516171819
  1. CXX = gcc
  2. FLAGS = -Wall -g3 -O2 -march=native -mtune=native
  3. CLIBS = `sdl-config --cflags`
  4. LDFLAGS = `sdl-config --libs` -lSDL_gfx -lm -lpthread
  5. OBJ = main.o screen.o route.o
  6. main: $(OBJ)
  7. $(CXX) $(FLAGS) $(LDFLAGS) -o $@ $(OBJ)
  8. %.o: %.c %.h
  9. $(CXX) $(FLAGS) $(CLIBS) -c $<
  10. %.o: %.c
  11. $(CXX) $(FLAGS) $(CLIBS) -c $<
  12. .PHONY : clean
  13. clean:
  14. rm -f *.o main