~3v1n0/etube/master

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Marco Trevisan (Treviño)
  • Date: 2011-07-21 15:42:36 UTC
  • Revision ID: git-v1:1c9ab0fbf7bdac1350901ac08ce70358a7dcdb2c
Makefile: use pkg-config instead of static declarations

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
PTTGCC = gcc
2
1
INCLUDEPATH = -I./include 
3
2
 
4
 
LIBS     += -I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/elementary-0 -I/usr/include/ethumb-0 -I/usr/include/efreet-1 -I/usr/include/e_dbus-1 -I/usr/include/ecore-1 -I/usr/include/edje-1 -I/usr/include/evas-1 -I/usr/include/eet-1 -I/usr/include/eina-1 -I/usr/include/eina-1/eina -I/usr/include/eio-0 -I/usr/include/epdf -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/lua5.1 -I/usr/include/embryo-1  -lelementary
5
 
LIBS += -leina -lecore -lecore_con -lecore_file
6
 
 
7
 
 
8
 
#.SUFFIXES: .o .cpp
9
 
#.cpp.o:
10
 
#       $(PTTGCC) $(INCLUDEPATH) -o $<.o $<
11
 
#.cpp.o:
12
 
#       $(PTTGCC) $(INCLUDEPATH) $(LD) -c $<
13
 
 
14
 
 
 
3
 
 
4
CFLAGS += $(shell pkg-config --cflags elementary ecore-con)
 
5
LIBS   += $(shell pkg-config --libs elementary ecore-con)
15
6
 
16
7
all %:: 
17
 
        $(PTTGCC) $(LIBS) -c downside-main.c -o etube-downside.o
18
 
        $(PTTGCC) $(LIBS) -c etube-test.c -o etube-test.o
19
 
        $(PTTGCC) $(LIBS) -ledje -levas -leina gui-main.c -c -o gui-main.o
20
 
        $(PTTGCC) $(LIBS) -ledje -levas   gui-main.o etube-downside.o -o etube_downside
21
 
        $(PTTGCC) $(LIBS) -ledje -levas   etube-test.o  -o etube2
 
8
        $(CC) $(CFLAGS) $(LIBS) -c downside-main.c -o etube-downside.o
 
9
        $(CC) $(CFLAGS) $(LIBS) -c etube-test.c -o etube-test.o
 
10
        $(CC) $(CFLAGS) $(LIBS) gui-main.c -c -o gui-main.o
 
11
        $(CC) $(CFLAGS) $(LIBS) gui-main.o etube-downside.o -o etube_downside
 
12
        $(CC) $(CFLAGS) $(LIBS) etube-test.o  -o etube2
22
13
 
23
14
 
24
15
clean: