summaryrefslogblamecommitdiff
path: root/Makefile
blob: 5983477db83f60fad007cac9471abcac5732f0dc (plain) (tree)
1
2
3
4
5
6
7
8
9
             
            
 

                 
                                                                    


                      
                                                           







                                                    



                                                   

                   
                              






                       
                                

                             
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)
	$(RM) *.c~ *.h~

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

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

re:	fclean $(NAME) clean