Skip to content

Instantly share code, notes, and snippets.

@Wes974
Created October 20, 2019 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wes974/462fb7253a15812395871e95a8d7a28c to your computer and use it in GitHub Desktop.
Save Wes974/462fb7253a15812395871e95a8d7a28c to your computer and use it in GitHub Desktop.
# Makefile
CC=gcc
CPPFLAGS=-MMD -D_XOPEN_SOURCE=500 `pkg-config --cflags sdl2 gtk+-3.0`
ERROR_CFLAiR=-Wall -Wextra -std=c99 -g
LDFLAGS=
LDLIBS=`pkg-config --libs sdl2 gtk+-3.0` -lSDL2_image -lm -export-dynamic -lm
SRC= line.c
DEP= ${SRC:.c=.d}
PRG= ${SRC:.c=}
all: ${PRG}
-include ${DEP}
clean:
rm -f *.o
rm -f ${DEP}
rm -f ${PRG}
# END Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment