File: Makefile.w32

package info (click to toggle)
abcm2ps 4.12.18-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 988 kB
  • ctags: 1,043
  • sloc: ansic: 17,890; sh: 2,793; makefile: 175
file content (38 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (4)
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
34
35
36
37
38
# Makefile.w32
#
# This Makefile will compile abcm2ps using djgpp or mingw out of the box.
# If you use cygwin but want to make a mingw binary, change CFLAGS below.

VERSION = 4.8.0
ABCM2PS = abcm2ps.exe
CC      = gcc
# settings for djgpp or mingw32
CFLAGS  = -O2 -Wall -DHAVE_CONFIG_H -I.
# to make a mingw executable using cygwin, use these CFLAGS:
# CFLAGS = -O2 -Wall -DHAVE_CONFIG_H -mno-cygwin -I. \
# -I/usr/include/mingw -L/usr/lib/mingw

OBJECTS=abc2ps.o abcparse.o buffer.o deco.o draw.o format.o music.o \
	parse.o subs.o syms.o

$(ABCM2PS): $(OBJECTS)
	$(CC) $(CFLAGS) -o $(ABCM2PS) $(OBJECTS)

$(OBJECTS): abcparse.h abc2ps.h config.h

zip: $(ABCM2PS)
	strip $(ABCM2PS); \
	cd ..; zip -r abcm2ps-$(VERSION).zip \
	abcm2ps-$(VERSION)/$(ABCM2PS) \
	abcm2ps-$(VERSION)/License \
	abcm2ps-$(VERSION)/Changes \
	abcm2ps-$(VERSION)/INSTALL \
        abcm2ps-$(VERSION)/sample3.eps \
	abcm2ps-$(VERSION)/*.abc \
	abcm2ps-$(VERSION)/*.fmt \
	abcm2ps-$(VERSION)/*.txt ; cd -

clean:
	rm -f *.o

# End of file Makefile.w32