File: Makefile

package info (click to toggle)
pixelize 0.9.2-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 304 kB
  • ctags: 199
  • sloc: ansic: 2,349; makefile: 77
file content (43 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (3)
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
39
40
41
42
43
# compile stuff in this dir

CC = gcc

CFLAGS = -I/usr/X11R6/include `imlib-config --cflags` `gtk-config --cflags`
DFLAGS = -L/usr/X11R6/lib `imlib-config --libs-gdk` `gtk-config --libs`
LIBS = -lm

ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	CFLAGS+=-O2 -Wall
	DFLAGS+=-O2 -Wall
else
	CFLAGS+=-O2 -Wall -g
	DFLAGS+=-O2 -Wall -g
endif

OBJS = main.o setup_menu.o callback_menu.o help.o options.o \
       display.o read_db.o globals.o read_line.o \
       file_dialog.o draw_image.o status.o \
       render.o render_image.o stats.o find_match.o \
       info_popup.o highlight.o cursor.o

all:	make_db pixelize

merge:	merge.o read_line.o stats.o
	$(CC) -o $@ merge.o read_line.o stats.o $(DFLAGS) $(LIBS)

make_db:	make_db.o
	$(CC) -o $@ make_db.o `imlib-config --libs` $(LIBS)

pixelize:	$(OBJS)
	$(CC) -o $@ $(OBJS) $(DFLAGS) $(LIBS)

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

depend:
	$(CC) -MM $(CFLAGS) *.c > .depend

clean:
	rm -f *.o pixelize make_db core

include .depend