forked from JulienPalard/is_utf8
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 612 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 612 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
##
## Makefile for is_utf8
##
## Made by julien palard
## Login <is_utf8@mandark.fr>
##
NAME = is_utf8
SRC = main.c is_utf8.c
OBJ = $(SRC:.c=.o)
VERSION = 0
MINOR = 0
RELEASE = 0
LIB_SRC = is_utf8.c
LINKERNAME = lib$(NAME).so
SONAME = $(LINKERNAME).$(VERSION)
REALNAME = $(SONAME).$(MINOR).$(RELEASE)
CC = gcc
CFLAGS = -O3 -Wextra -Wall -ansi -pedantic -Wstrict-prototypes
$(NAME): IS_UTF8_LIB $(OBJ)
$(CC) $(CFLAGS) -o $(NAME) $(OBJ)
IS_UTF8_LIB:
$(CC) --shared -fPIC $(CFLAGS) $(LIB_SRC) -o $(LINKERNAME)
all:
@make $(NAME)
clean:
rm -f $(NAME) $(LINKERNAME) $(OBJ) $(LIB_OBJ)
re: clean all