3
# The 3rdparty/strptime directory contains a derivative of
4
# the BSD strptime() function which is not available on
5
# certain architectures such as the NEC SX-6.
8
DEPEND = ../3rdparty/sge_depend/$(COMPILE_ARCH)/sge_depend -l -S -Y $(DEPEND_FLAGS)
10
STRPTIME_DIR = ../3rdparty/strptime
12
STRPTIME = libstrptime.a
14
STRPTIME_SRC = strptime.c
16
STRPTIME_OBJS = $(STRPTIME_SRC:.c=.o)
18
###############################################################################
19
# global rules: all, clean, depend, messages
20
###############################################################################
24
$(RM) $(STRPTIME_OBJS) libstrptime.a
27
$(DEPEND) -f$(STRPTIME_DIR)/strptime_dependencies $(STRPTIME_DIR)/*.c
29
###############################################################################
30
# rules to build library
31
###############################################################################
32
libstrptime.a: $(STRPTIME_OBJS)
33
$(AR) $(ARFLAGS) libstrptime.a $(STRPTIME_OBJS)
34
$(RANLIB) libstrptime.a
36
###############################################################################
37
# include dependencies for object files generated by sge_depend
38
###############################################################################
39
include $(STRPTIME_DIR)/strptime_dependencies
41
###############################################################################
42
# rules to build object codes
43
###############################################################################
45
strptime.o: $(STRPTIME_DIR)/strptime.c
46
$(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(STRPTIME_DIR)/strptime.c