summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: cfe17564336797cd03470a0892af151c7c3d93fc (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
CC	= cc
CFLAGS	= -W -Wall -Wno-sign-compare -O2 -g
LDFLAGS	=
ifneq (,$(findstring _NT,$(shell uname -s)))
O	= obj
X	= .exe
else
O	= o
X	=
endif

PROGS = abcwrite$(X) abcread$(X) deinter$(X) abctext$(X)

all : $(PROGS)

.c.$(O):
	$(CC) $(CFLAGS) -c -o $@ $<

abcwrite$(X): abcwrite.$(O) util.$(O) formats.$(O)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

abcread$(X): abcread.$(O) util.$(O) formats.$(O)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

deinter$(X): deinter.$(O)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

clean:
	rm -f $(PROGS) *.$(O) *~