summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeber <beber>2005-07-20 22:01:42 +0000
committerbeber <beber>2005-07-20 22:01:42 +0000
commit7211eb5c359cadd7641539e668279c7ded26339a (patch)
tree4e585f13679e45516dd9ed124512d1ad2e6b8783
parentMore debug (diff)
downloadelock-7211eb5c359cadd7641539e668279c7ded26339a.tar.xz
Modifyed Makefile for tests
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8e7406f..fc85a83 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,12 @@
SRC = elock.c
NAME = elock
-CFLAGS += -W -Wall
+SRCTST = event2.c
+NAMETST = test
+LDFLAGSTST = -lX11 -W -Wall -g
+OBJTST = $(SRCTST:c=o)
+
+CFLAGS += -W -Wall -g
LDFLAGS += -lecore -lecore_config -lecore_con -lecore_evas
OBJ = $(SRC:c=o)
RM = rm -f
@@ -11,9 +16,13 @@ $(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)
+ $(RM) $(OBJ) $(OBJTST)
$(RM) *.c~ *.h~
pdfclean: