summaryrefslogtreecommitdiff
path: root/tests/test7/Makefile
blob: e5bcdcbfb5a957025887033227ce87fadee9b43b (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
CC=gcc
GTKBC=gtk-builder-convert
#CFLAGS=-W -Wall -Werror -Wno-error=unused-parameter -g
CFLAGS=-W -Wall -Werror -Wno-unused-parameter -g
LDFLAGS=-export-dynamic -Werror -g
EXEC=test7

CFLAGS+=$(shell pkg-config --cflags gtk+-2.0 gthread-2.0 libpulse)
LDFLAGS+=$(shell pkg-config --libs gtk+-2.0 gthread-2.0 libpulse)

SRC= $(wildcard *.c)
OBJ= $(SRC:.c=.o)

all: $(EXEC)

$(EXEC): $(OBJ)
	$(CC) -o $@ $^ $(LDFLAGS)

#test7.c: win_main.xml

%.xml: %.glade
	$(GTKBC) $< $@

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

.PHONY: clean mrproper

clean:
	rm *.o *.xml

mrproper: clean
	rm $(EXEC)