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))))