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 527B

1234567891011121314151617181920212223242526
  1. CC = gcc
  2. CFLAGS = -Wall -g3 -O2 -march=native -mtune=native -pipe -std=gnu99 -I../logging
  3. LDFLAGS = -lrt -lssl -lcrypto
  4. OBJ_NET = network.o pstr.o net.o net_test.o ../logging/logging.o
  5. OBJ_TALK = network.o pstr.o talk_test.o userstuff.o dispatch.o talk.o ../logging/logging.o
  6. all: talk net
  7. dbg: all
  8. talk: $(OBJ_TALK)
  9. $(CC) -o $@ $(OBJ_TALK) $(LDFLAGS)
  10. net: $(OBJ_NET)
  11. $(CC) -o $@ $(OBJ_NET) $(LDFLAGS)
  12. %.o: %.c %.h
  13. $(CC) $(CFLAGS) -c $<
  14. %.o: %.c
  15. $(CC) $(CFLAGS) -c $<
  16. .PHONY : clean
  17. clean:
  18. rm -f *.o net talk