From 67b55f9d3843b1d8624222a7afc2bc0d855f3e7a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 1 Oct 2012 12:11:20 +0200 Subject: [PATCH] Add a Makefile. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8e35cfa --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +CC=gcc +CFLAGS=-std=gnu99 -Wall +LDFLAGS=-lSDL -lSDL_image -lGL + +test: test.o + $(CC) -o test test.o $(LDFLAGS) + +.o: .c + $(CC) $(CXXFLAGS) $(CCFLAGS) -o $@ $< + +clean: + $(RM) test test.o + +.PHONY: clean -- 2.39.2