From 728cb2cbcae9a319029162aa2511787fccbe9e16 Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Sun, 4 Jan 2015 10:02:50 -0800 Subject: [PATCH] Gitignore shared libraries and comment makefile a bit. --- .gitignore | 4 +++- Makefile | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 82246d82..4cb62bea 100644 --- a/.gitignore +++ b/.gitignore @@ -3,9 +3,11 @@ build/ build_xcode/ .sass-cache/ -# Built applications. +# Built files at the top level. wren wrend +libwren.a +libwrend.a # XCode user-specific stuff. xcuserdata/ diff --git a/Makefile b/Makefile index 43338050..9dc426d6 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ SOURCES = $(wildcard src/*.c) HEADERS = $(wildcard src/*.h) OBJECTS = $(SOURCES:.c=.o) +# Don't include main.c in the shared library. DEBUG_OBJECTS = $(subst build/debug/main.o,,$(addprefix build/debug/, $(notdir $(OBJECTS)))) RELEASE_OBJECTS = $(subst build/release/main.o,,$(addprefix build/release/, $(notdir $(OBJECTS))))