diff --git a/.gitignore b/.gitignore index 6baf30a..d158344 100644 --- a/.gitignore +++ b/.gitignore @@ -76,7 +76,6 @@ $RECYCLE.BIN/ /autoscan-*.log /autoscan.log /compile -/config.h.in /configure.scan /depcomp /install-sh @@ -87,7 +86,6 @@ $RECYCLE.BIN/ Desktop.ini ehthumbs.db Icon -Makefile.in Network Trash Folder [sS]ession.vim sftp-config.json @@ -95,4 +93,5 @@ Temporary Items Thumbs.db ~$*.doc* ~$*.ppt* -~$*.xls* \ No newline at end of file +~$*.xls* +abcm2ps diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..fa5f3a3 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,140 @@ +# Makefile source for abcm2ps + +VERSION = @VERSION@ + +CC = @CC@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ + +CPPFLAGS = @CPPFLAGS@ -I. +CPPPANGO = @CPPPANGO@ +CFLAGS = @CFLAGS@ +LDFLAGS = @LDFLAGS@ -lm + +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +srcdir = @srcdir@ +VPATH = @srcdir@ +bindir = @bindir@ +libdir = @libdir@ +datadir = @datarootdir@ +docdir = @docdir@ + +# unix +OBJECTS=abcm2ps.o \ + abcparse.o buffer.o deco.o draw.o format.o front.o glyph.o music.o parse.o \ + subs.o svg.o syms.o +abcm2ps: $(OBJECTS) + $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LDFLAGS) + +$(OBJECTS): config.h Makefile +abcparse.o abcm2ps.o buffer.o deco.o draw.o format.o front.o glyph.o \ + music.o parse.o subs.o svg.o syms.o: abcm2ps.h +subs.o: subs.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(CPPPANGO) -c -o $@ $< + +DOCFILES=$(addprefix $(srcdir)/,Changes README *.abc *.eps *.txt) + +install: abcm2ps + mkdir -p $(DESTDIR)$(bindir); \ + mkdir -p $(DESTDIR)$(datadir)/abcm2ps; \ + mkdir -p $(DESTDIR)$(docdir)/abcm2ps; \ + $(INSTALL_PROGRAM) abcm2ps $(DESTDIR)$(bindir) + for f in $(srcdir)/*.fmt; do \ + $(INSTALL_DATA) $$f $(DESTDIR)$(datadir)/abcm2ps; \ + done + for f in $(DOCFILES); do \ + $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/abcm2ps; \ + done + +uninstall: + echo "uninstalling..."; \ + rm -f $(DESTDIR)$(bindir)/abcm2ps; \ + rm -rf $(DESTDIR)$(datadir)/abcm2ps; \ + rm -rf $(DESTDIR)$(docdir)/abcm2ps + +DIST_FILES = \ + abcm2ps-$(VERSION)/Changes \ + abcm2ps-$(VERSION)/INSTALL \ + abcm2ps-$(VERSION)/Makefile \ + abcm2ps-$(VERSION)/Makefile.in \ + abcm2ps-$(VERSION)/README \ + abcm2ps-$(VERSION)/abcm2ps.c \ + abcm2ps-$(VERSION)/abcm2ps.h \ + abcm2ps-$(VERSION)/abcparse.c \ + abcm2ps-$(VERSION)/accordion.abc \ + abcm2ps-$(VERSION)/bravura.abc \ + abcm2ps-$(VERSION)/build.ninja \ + abcm2ps-$(VERSION)/buffer.c \ + abcm2ps-$(VERSION)/chinese.abc \ + abcm2ps-$(VERSION)/configure \ + abcm2ps-$(VERSION)/config.h \ + abcm2ps-$(VERSION)/config.h.in \ + abcm2ps-$(VERSION)/deco.c \ + abcm2ps-$(VERSION)/deco.abc \ + abcm2ps-$(VERSION)/draw.c \ + abcm2ps-$(VERSION)/flute.fmt \ + abcm2ps-$(VERSION)/format.c \ + abcm2ps-$(VERSION)/free.abc \ + abcm2ps-$(VERSION)/front.c \ + abcm2ps-$(VERSION)/glyph.c \ + abcm2ps-$(VERSION)/glyphs.abc \ + abcm2ps-$(VERSION)/landscape.fmt \ + abcm2ps-$(VERSION)/music.c \ + abcm2ps-$(VERSION)/musicfont.fmt \ + abcm2ps-$(VERSION)/newfeatures.abc \ + abcm2ps-$(VERSION)/options.txt \ + abcm2ps-$(VERSION)/parse.c \ + abcm2ps-$(VERSION)/sample.abc \ + abcm2ps-$(VERSION)/sample2.abc \ + abcm2ps-$(VERSION)/sample3.abc \ + abcm2ps-$(VERSION)/sample3.eps \ + abcm2ps-$(VERSION)/sample4.abc \ + abcm2ps-$(VERSION)/sample5.abc \ + abcm2ps-$(VERSION)/sample8.html \ + abcm2ps-$(VERSION)/subs.c \ + abcm2ps-$(VERSION)/svg.c \ + abcm2ps-$(VERSION)/syms.c \ + abcm2ps-$(VERSION)/voices.abc + +dist: Changes + ln -s . abcm2ps-$(VERSION); \ + tar -zcvf abcm2ps-$(VERSION).tar.gz $(DIST_FILES); \ + rm abcm2ps-$(VERSION) + +zip-dist: + ln -s . abcm2ps-$(VERSION); \ + zip -r abcm2ps-$(VERSION).zip $(DIST_FILES); \ + rm abcm2ps-$(VERSION) + +zip: abcm2ps.exe + strip abcm2ps.exe; \ + cd ..; zip -r abcm2ps-$(VERSION).zip \ + abcm2ps-$(VERSION)/abcm2ps.exe \ + abcm2ps-$(VERSION)/License \ + abcm2ps-$(VERSION)/Changes \ + abcm2ps-$(VERSION)/INSTALL \ + abcm2ps-$(VERSION)/sample3.eps \ + abcm2ps-$(VERSION)/*.abc \ + abcm2ps-$(VERSION)/*.fmt \ + abcm2ps-$(VERSION)/*.txt ; cd - + +EXAMPLES = accordion.ps \ + chinese.ps \ + deco.ps \ + newfeatures.ps \ + sample.ps \ + sample2.ps \ + sample3.ps \ + sample4.ps \ + sample5.ps \ + voices.ps + +test: $(EXAMPLES) +%.ps: %.abc + ./abcm2ps -O $@ $< + +clean: + rm -f *.o $(EXAMPLES) # *.obj diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..650eee1 --- /dev/null +++ b/config.h.in @@ -0,0 +1,16 @@ +/* config.h.in */ + +/* uncomment to handle the european A4 format. */ +//#define A4_FORMAT 1 + +/* uncomment to have ~ as roll instead of twiddle. */ +//#define DECO_IS_ROLL 1 + +/* comment if you have not mmap() */ +#define HAVE_MMAP 1 + +/* default directory to search for format files */ +#define DEFAULT_FDIR xxx + +#define VERSION xxx +#define VDATE xxx