summaryrefslogtreecommitdiff
path: root/Makefile
blob: c156ed2b36ee4c72493a80d7b7762b39b6aef136 (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
39
40
41
SRCS = \
main.c \
pres_core.c \
slide.c \
xtag.c \
anx_list.c

ifdef CONFIG_BIN
  CFBIN = $(CONFIG_BIN)/
else
  CFBIN = 
endif

FLGS = \
`$(CFBIN)evas-config --cflags` \
`$(CFBIN)ecore-config --cflags` \
`$(CFBIN)edje-config --cflags` \
`$(CFBIN)emotion-config --cflags`

LIBS = \
`$(CFBIN)evas-config --libs` \
`$(CFBIN)ecore-config --libs` \
`$(CFBIN)edje-config --libs` \
`$(CFBIN)emotion-config --libs` \
-lm

####################
OBJS = $(SRCS:.c=.o)

ddc_2005: $(OBJS) bg.edj
	$(RM) $@
	$(CC) -o $@ $(OBJS) $(LIBS)

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

bg.edj: Makefile
	edje_cc -fd ./data/fonts -id ./data/images -v bg.edc bg.edj

clean::
	rm -rf ddc_2005 *.o *~ "#"* bg.edj