OSDN Git Service

OMakefileの修正. distcleanルールの追加 master
authorrezoo <rezoolab@gmail.com>
Sun, 29 Nov 2009 06:14:17 +0000 (15:14 +0900)
committerrezoo <rezoolab@gmail.com>
Sun, 29 Nov 2009 06:14:17 +0000 (15:14 +0900)
src/OMakefile
src/cpp/OMakefile
src/test/OMakefile

index 0f56580..65fdf30 100644 (file)
@@ -2,3 +2,6 @@ CXXFLAGS = -Wall -W -g $(shell pkg-config --cflags opencv)
 LDFLAGS = $(shell pkg-config --libs opencv)
 
 .SUBDIRS: cpp test
+
+distclean:
+  rm OMakefile.omc
index a0509c0..e818ba2 100644 (file)
@@ -1,7 +1,12 @@
-SRCS = $(removesuffix $(glob *.h))
+SRCS = $(removesuffix $(glob *.cpp))
 TARGET = libpaldema
 
 CXXFLAGS += -shared
 LDFLAGS += 
 
-.DEFAULT: $(StaticCXXLibrary $(TARGET), $(SRCS))
+StaticCXXLibrary($(TARGET), $(SRCS))
+
+.DEFAULT: $(TARGET).a
+
+distclean:
+  rm OMakefile.omc
index 3b2f80f..051671f 100644 (file)
@@ -8,3 +8,6 @@ CXXProgram(load_tga, load_tga)
 CXXProgram(video, video)
 
 .DEFAULT: $(TEST_BUILDS)
+
+distclean:
+  rm OMakefile.omc