odyssey/lib/makefile

25 lines
475 B
Makefile
Raw Normal View History

2016-11-08 14:53:52 +00:00
# libflint makefile.
2016-11-08 11:43:54 +00:00
#
CC = gcc
AR = ar
RM = rm
CFLAGS = -I. -Wall -g -O0 -pedantic
2016-11-08 12:40:12 +00:00
OBJECTS = ft_context.o \
ft_fiber.o \
ft_scheduler.o \
ft.o \
ft_io.o \
2016-11-08 12:42:16 +00:00
ft_ioconnect.o \
2016-11-08 12:48:18 +00:00
ft_iobind.o \
ft_ioaccept.o \
2016-11-08 12:50:54 +00:00
ft_ioread.o \
ft_iowrite.o
2016-11-08 12:40:12 +00:00
2016-11-08 14:53:52 +00:00
LIB = libflint.a
2016-11-08 11:43:54 +00:00
$(LIB): clean $(OBJECTS)
$(AR) cr $(LIB) $(OBJECTS)
.c.o:
$(CC) $(CFLAGS) -c $<
clean:
$(RM) -f $(OBJECTS) $(LIB)