From 459e2685158f1dc5a9cd3da1c3125889bc02f9d6 Mon Sep 17 00:00:00 2001 From: gayot_o Date: Tue, 19 Nov 2013 02:43:27 +0000 Subject: mplayer_server: first version of the server --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3