Signed-off-by: Rhys Kidd <rhysk...@gmail.com> --- .gitignore | 1 + Makefile | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore index f69750a..cffa19c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ bin run +*.o diff --git a/Makefile b/Makefile index 1ae0776..a4bfb8f 100644 --- a/Makefile +++ b/Makefile @@ -21,9 +21,17 @@ CFLAGS ?= -g -O2 -march=native -pipe CFLAGS += -std=gnu99 -fopenmp -LDFLAGS = -lepoxy -lgbm +LIBS = -lepoxy -lgbm -run: +OBJ = run.o + +all: run + +%.o: %.c + $(CC) -c -o $@ $< $(CFLAGS) + +run: $(OBJ) + $(CC) $(CFLAGS) -o $@ $^ $(LIBS) clean: - rm -f run + rm -f run $(OBJ) -- 2.1.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev