From c555641af6f4021d744a50abd5084a174614dd54 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 6 Apr 2013 15:31:15 +0200 Subject: [PATCH] Add a Makefile. --- .gitignore | 2 ++ Makefile | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 71abcb7..7212a66 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ cubemap +*.o +*.d diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8d26f49 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC=gcc +CXX=g++ +CXXFLAGS=-Wall -O2 -g +LDLIBS=-lcurl + +OBJS=cubemap.o + +all: cubemap + +%.o: %.cpp + $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< +cubemap: $(OBJS) + $(CXX) -o cubemap $(OBJS) $(LDLIBS) + +DEPS=$(OBJS:.o=.d) +-include $(DEPS) + +clean: + $(RM) cubemap $(OBJS) $(DEPS) + -- 2.39.2