Makefile 318 B

123456789101112131415161718
  1. # Makefile for showfont
  2. CC = gcc
  3. CFLAGS = $(shell sdl2-config --cflags) -Wall -O
  4. LIBS = $(shell sdl2-config --libs) -lSDL2_ttf
  5. EXE = showfont #glfont
  6. all: $(EXE)
  7. showfont: showfont.c Makefile
  8. $(CC) -o $@ $@.c $(CFLAGS) $(LIBS)
  9. glfont: glfont.c Makefile
  10. $(CC) -o $@ $@.c $(CFLAGS) $(LIBS)
  11. clean:
  12. -rm *.o $(EXE)