diff options
author | gayot_o <gayot_o@localhost> | 2013-11-19 02:43:27 +0000 |
---|---|---|
committer | gayot_o <gayot_o@localhost> | 2013-11-19 02:45:46 +0000 |
commit | 459e2685158f1dc5a9cd3da1c3125889bc02f9d6 (patch) | |
tree | d4a205fed05e69d1184da0e76f1fb9ac49e06e43 /Makefile | |
parent | b0155666fbbb6c4105c36ffcddb894d7d21e38ae (diff) |
mplayer_server: first version of the server
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
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 |