summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgayot_o <gayot_o@localhost>2013-11-19 02:43:27 +0000
committergayot_o <gayot_o@localhost>2013-11-19 02:45:46 +0000
commit459e2685158f1dc5a9cd3da1c3125889bc02f9d6 (patch)
treed4a205fed05e69d1184da0e76f1fb9ac49e06e43 /Makefile
parentb0155666fbbb6c4105c36ffcddb894d7d21e38ae (diff)
mplayer_server: first version of the server
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b8d27b8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+CC ?= gcc
+CFLAGS += -W -Wall -std=gnu99 -Wextra
+CFLAGS += -D _XOPEN_SOURCE
+#CFLAGS += -D LOGS
+NAME = mplayer_server
+SRC = main.c callbacks.c escape.c logs.c
+
+all: depend $(NAME)
+
+depend: .depend
+
+.depend: $(SRC)
+ @$(RM) .depend
+ @$(CC) $(CFLAGS) -MM $^ > .depend
+
+include .depend
+
+OBJ = $(SRC:.c=.o)
+
+$(NAME): $(OBJ)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+clean:
+ $(RM) $(OBJ)
+
+fclean: clean
+ $(RM) $(NAME)
+
+re: fclean all
+
+.PHONY: all depend clean fclean all re