-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (28 loc) · 877 Bytes
/
Makefile
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
PACKAGE = @PACKAGE@
VERSION = @VERSION@
DEFS = -DLOCALEDIR=\"$(LOCALEDIR)\"
ECHO=echo
CC=gcc
CFLAGS=-g -W -Wall
EXTERN=-c
LIBS=-lm -lpq
INCLUDES=-I /usr/include/postgresql/
TARGET=Agenda_telefons
TARGET_GRAFIC=Agenda_telefons_Efl
PATH_FUNCIONS=funcions
FUNCIONS=funcions
GRAFIC=pkg-config --cflags --libs elementary evas ecore ecore-evas eina ecore-x
DATADIR = @DATADIR@
LOCALEDIR = $(DATADIR)/locale
#PACKAGE = @PACKAGE@
#DEFS = -DLOCALEDIR=\"$(LOCALEDIR)\"
##--with-included-gettext
all:funcio consola grafic
grafic:funcio grafic
$(CC) -o $(TARGET_GRAFIC) $(INCLUDES) $(CFLAGS) $(TARGET_GRAFIC).c $(FUNCIONS).o `$(GRAFIC)` $(DEFS) $(LIBS)
consola:funcio consola
$(CC) -o $(TARGET) $(INCLUDES) $(CFLAGS) $(TARGET).c $(FUNCIONS).o $(DEFS) $(LIBS)
funcio:
$(CC) $(CFLAGS) $(EXTERN) $(FUNCIONS)/$(FUNCIONS).c
clean:
$(RM) $(TARGET) $(TARGET_GRAFIC) $(FUNCIONS).o