summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1a18d33e26ce10f927ec64fbced0d4dd78932250 (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
34
35
36
37
38
# We don't need kludgy automatizations here,
# let's use a simple Makefile.
# Just tweak the values below to fix your paths
#
# $Id: Makefile 60 2004-11-12 15:40:18Z jaromil $


CC = gcc
CPP = g++
LINKER = ld
# debugging flags:
CPPFLAGS = -I. -Wall -ggdb `pkg-config --cflags gtk+-2.0`

# optimized flags:
# CPPFLAGS = -I. -Wall -O2 -fomit-frame-pointer -ffast-math
LIBS = -lpthread `pkg-config --libs gtk+-2.0`

OBJ = decoder.o thread.o utils.o cmdline.o gui.o

all: ivysync

ivysync: $(OBJ)
	$(CPP) $(CPPFLAGS) -o ivysync $(OBJ) $(LIBS)

#make clean
clean:
	rm -rf *.o *~ ivysync

install: ivysync
	install ivysync /usr/local/bin

# generic make rules
#%: %.c
#	$(CC) $(CFLAGS) -o $@ $< $(LIBS)
#%.o: %.c
#	$(CC) $(CFLAGS) -c -o $@ $<