summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2017-12-28 21:52:04 +0100
committerOlivier Gayot <duskcoder@gmail.com>2017-12-28 21:52:04 +0100
commit3282ab0cd838ab7e070021cd2a537d78e60d263a (patch)
treea05ead754b3dd1ac8bf2dc9549c77d5ab135d238 /Makefile
Imported sources files into the Git
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..683aecf
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,59 @@
+##
+## Makefile for in /home/gayot_o/prog/lib/sdl-digit
+##
+## Made by olivier gayot
+## Login <gayot_o@epitech.net>
+##
+## Started on Mon Apr 23 04:13:10 2012 olivier gayot
+## Last update Mon Apr 23 04:13:10 2012 olivier gayot
+##
+
+CC ?= gcc
+CFLAGS += -W -Wall -pedantic -std=c99 -Wextra -O3 `sdl-config --cflags`
+CFLAGS += -I./include
+HEADERS = include/sdl_digit.h
+LDFLAGS += `sdl-config --libs` -lm
+LDFLAGS += -L./lib
+SRC_DIR = src
+
+SRC = line.c \
+ bar.c \
+ rect.c \
+ pixel.c \
+ digit.c \
+ string.c
+SRC := $(addprefix $(SRC_DIR)/, $(SRC))
+OBJ = $(SRC:.c=.o)
+NAME = libsdl-digit.a
+DEBUG = -g
+RENDU = -D PRAG
+
+all: $(NAME)
+
+$(NAME): $(OBJ)
+ @echo 'Creating archive $(NAME)'
+ @$(AR) $(ARFLAGS) $(NAME) $(OBJ)
+ @echo 'done.'
+ @echo 'Generating index for $(NAME)'
+ @ranlib $(NAME)
+ @echo 'done.'
+
+clean:
+ @echo 'Cleaning obj files'
+ @$(RM) $(OBJ)
+ @echo 'done.'
+
+fclean: clean
+ @echo 'Cleaning $(NAME)'
+ @$(RM) $(NAME)
+ @echo 'done'
+
+re: fclean all
+
+install:
+ @echo '######## Installing $(basename $(NAME)) ########'
+ cp $(NAME) /usr/lib/
+ cp $(HEADERS) /usr/include/sdl-digit/
+
+debug: CFLAGS += $(DEBUG)
+debug: re