Skip to content

Instantly share code, notes, and snippets.

@noroutine
Created June 21, 2016 12:21
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 noroutine/992407e6e237fc102a9d7069f35ebdd8 to your computer and use it in GitHub Desktop.
Save noroutine/992407e6e237fc102a9d7069f35ebdd8 to your computer and use it in GitHub Desktop.
# Sample makefile
SHELL=/bin/bash
CC=gcc
CFLAGS=-O2
.PHONY: all
all: example0
%: %.c
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-3.0` -o $@ $@.c `pkg-config --libs gtk+-3.0`
clean:
rm -f example0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment