* added _DISABLE_TIDENTS macro to disable any ANSI/UNICODE ambiguous elements from...
[reactos.git] / reactos / lib / string / Makefile
1 # $Id: Makefile,v 1.5 2003/08/07 04:03:23 royce Exp $
2
3 PATH_TO_TOP = ../..
4
5 TARGET_TYPE = library
6
7 TARGET_NAME = string
8
9 include $(PATH_TO_TOP)/config
10
11 include Makefile.$(ARCH)
12
13 TARGET_CFLAGS = -Wall -Werror
14
15 # require os code to explicitly request A/W version of structs/functions
16 TARGET_CFLAGS += -D_DISABLE_TIDENTS
17
18 ifeq ($(DBG), 1)
19 TARGET_CFLAGS += -g
20 else
21 TARGET_CFLAGS += -fno-strict-aliasing -O6
22 endif
23
24 TARGET_OBJECTS = \
25 memccpy.o \
26 memchr.o \
27 memcmp.o \
28 memcpy.o \
29 memmove.o \
30 memset.o \
31 strcat.o \
32 strchr.o \
33 strcmp.o \
34 strcpy.o \
35 strcspn.o \
36 strlen.o \
37 strncat.o \
38 strncmp.o \
39 strncpy.o \
40 strnlen.o \
41 strrchr.o \
42 strspn.o \
43 wcscat.o \
44 wcschr.o \
45 wcscmp.o \
46 wcscpy.o \
47 wcslen.o \
48 wcsncat.o \
49 wcsncmp.o \
50 wcsncpy.o \
51 wcsnlen.o \
52 wcsrchr.o
53
54 TARGET_OBJECTS := $(filter-out $(EXCLUDE_FILTER), $(TARGET_OBJECTS)) $(OBJECTS_ARCH)
55
56
57 include $(PATH_TO_TOP)/rules.mak
58
59 include $(TOOLS_PATH)/helper.mk
60
61 DEP_OBJECTS := $(TARGET_OBJECTS)
62
63 TARGET_CLEAN = $(DEP_FILES)
64
65 include $(PATH_TO_TOP)/tools/depend.mk