summaryrefslogtreecommitdiff
blob: 1799d416b26bac0afb69c0a7871a46468e4d02c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- ninka-orig/comments/Makefile
+++ ninka/comments/Makefile
@@ -11,12 +11,13 @@
 #DEBUG = -g -DDEBUG -DIODEBUG
 
 
-all:
-	g++ $(DEBUG) $(OPTIONS) $(DEFINES) -c io.cpp
-	g++ $(DEBUG) $(OPTIONS) $(DEFINES) -c dformat.cpp
-	g++ $(DEBUG) $(OPTIONS) $(DEFINES) -c func.cpp
-	g++ $(DEBUG) $(OPTIONS) $(DEFINES) -c main.cpp
-	g++ -o $(NAME) main.o io.o dformat.o func.o
+all: $(NAME)
+
+%.o: %.cpp
+	$(CXX) $(CXXFLAGS) $(DEFINES) -c $<
+
+$(NAME): main.o io.o dformat.o func.o
+	$(CXX) $(LDFLAGS) -o $@ $^
 
 install:
 	@echo -n "Installing binary:   "
--- ninka-orig/Makefile.PL
+++ ninka/Makefile.PL
@@ -13,7 +13,7 @@
         'Yuki Manabe <y-manabe@ist.osaka-u.ac.jp>',
         'René Scheibe <rene.scheibe@gmail.com>',
     ],
-    EXE_FILES => ['bin/ninka'],
+    EXE_FILES => ['bin/ninka', 'bin/ninka-excel', 'bin/ninka-sqlite'],
     CONFIGURE_REQUIRES => {
         'ExtUtils::MakeMaker' => '6.52',
     },