summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-10-31 19:31:22 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-10-31 19:31:31 -0700
commit2fa260cef68d5bb2b36bbd6fd4a2885ed4773940 (patch)
treea6daffb55d4f03e75d8d19d8ac78ea1106f36c33 /Makefile
parentae802e3867f35d83a14e4115a92524717683265c (diff)
downloadnode-new-2fa260cef68d5bb2b36bbd6fd4a2885ed4773940.tar.gz
Clean up 'make clean'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6424abbdda..0ae3cb3276 100644
--- a/Makefile
+++ b/Makefile
@@ -53,12 +53,12 @@ cflags += -pedantic
-debug_CPPDEFINES = -DDEBUG
+debug_CPPFLAGS = -DDEBUG $(CPPFALGS)
debug_CFLAGS = -Wall -O0 -ggdb
debug_CXXFLAGS = $(debug_CFLAGS)
debug_LINKFLAGS = $(LINKFLAGS)
-release_CPPDEFINES = -DNODEBUG
+release_CPPFLAGS = -DNODEBUG $(CPPFALGS)
release_CFLAGS = -Wall -O2 $(CFLAGS)
release_CXXFLAGS = $(release_CFLAGS)
release_LINKFLAGS = $(LINKFLAGS)
@@ -393,9 +393,11 @@ docclean:
clean:
-rm -f node node_g $(builddir)/node $(builddir)/node_g $(libv8) $(libv8_g)
- -find $(builddir) -name "*.o" | xargs rm -f
- -find $(builddir) -name "*.so" | xargs rm -f
- -find $(builddir) -name "*.dylib" | xargs rm -f
+ -rm -f $(node_release_objects) $(node_debug_objects)
+ -rm -f $(cares_release_objects) $(cares_debug_objects)
+ -rm -f $(http_parser_release_objects) $(http_parser_debug_objects)
+ -rm -f $(libev_release_objects) $(libev_debug_objects)
+ -rm -f $(libeio_release_objects) $(libeio_debug_objects)
-find . -name "*.pyc" | xargs rm -f
distclean: docclean