aboutsummaryrefslogtreecommitdiff
path: root/jindroush/acvt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'jindroush/acvt/Makefile')
-rw-r--r--jindroush/acvt/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/jindroush/acvt/Makefile b/jindroush/acvt/Makefile
new file mode 100644
index 0000000..498e2fc
--- /dev/null
+++ b/jindroush/acvt/Makefile
@@ -0,0 +1,52 @@
+#=====================================================================
+PRGNAME = acvt
+
+DESTDIR=
+PREFIX=/usr
+
+LDLIBS=-L../lib -ljindroush
+INCPATH=-I../include
+
+all: release
+
+release:
+ @$(MAKE) $(PRGNAME) CFLAGS="-c -O2 -Wall -D__CDISK_SAVE__" LDFLAGS=""
+ @echo RELEASE: Compiled.
+
+rel_strip: release
+ @strip $(PRGNAME)
+
+install: rel_strip
+ cp $(PRGNAME) $(DESTDIR)/$(PREFIX)/bin/
+ @echo RELEASE: Installed.
+
+debug:
+ @$(MAKE) $(PRGNAME) CFLAGS="-c -g -Wall -D_DEBUG -D__CDISK_SAVE__" LDFLAGS="-g"
+ @echo DEBUG: Compiled.
+
+clean:
+ rm -rf *.o $(PRGNAME) $(PRGNAME).exe switches.cpp
+ @echo DEBUG: Cleaned.
+
+
+OBJECTS = acvt.o
+
+#=====================================================================
+CXX = g++
+LD = g++
+CPPFLAGS=$(COPT)
+COPT=-O2
+
+#=====================================================================
+
+$(PRGNAME) : $(OBJECTS)
+ $(LD) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $(PRGNAME)
+
+%.o : %.cpp switches.cpp
+ $(CXX) $(INCPATH) $(CPPFLAGS) $(CFLAGS) $< -o $@
+
+%.o : %.cpp
+ $(CXX) $(INCPATH) $(CPPFLAGS) $(CFLAGS) $< -o $@
+
+switches.cpp : switches.def ../switches.pl
+ perl ../switches.pl $< $@