summaryrefslogtreecommitdiff
path: root/Makefile
blob: daff4a9a9edf03bf191e30a84ac70342275617ca (plain) (blame)
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
SRC = elock.c
NAME = elock

SRCTST = event2.c
NAMETST = test
LDFLAGSTST = -lX11 -W -Wall -g -I/usr/X11R6/include -L/usr/X11R6/lib
OBJTST = $(SRCTST:c=o)

CFLAGS += -W -Wall -g
LDFLAGS += -lecore -lecore_config -lecore_con -lecore_evas 
OBJ = $(SRC:c=o)
RM = rm -f
CC = gcc

$(NAME): $(OBJ)
	$(CC) -o $(NAME) $(CFLAGS) $(LDFLAGS) $(OBJ)
	chmod u+x $(NAME)

test: $(OBJTST)
	$(CC) -o $(NAMETST) $(LDFLAGSTST) $(OBJTST)
	chmod u+x $(NAMETST)

clean:
	$(RM) *.swp
	$(RM) $(OBJ) $(OBJTST) $(NAME) $(NAMETST)
	$(RM) *.c~ *.h~

pdfclean:
	$(RM) *.pdf
	$(RM) *.ps

fclean:	clean pdfclean
	$(RM) $(NAME)

re:	fclean $(NAME) clean