summaryrefslogtreecommitdiffstats
path: root/src/util/support/Makefile.in
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-08-07 01:12:28 +0000
committerGreg Hudson <ghudson@mit.edu>2011-08-07 01:12:28 +0000
commit62a276e55287a06d66373f02202ab39c7ba74c00 (patch)
treed164f07b2a965f318d739a356e90835ea6dafd60 /src/util/support/Makefile.in
parentb0b94b9330fbf671da6c9dcd06d3b07eab4c63c6 (diff)
downloadkrb5-62a276e55287a06d66373f02202ab39c7ba74c00.tar.gz
krb5-62a276e55287a06d66373f02202ab39c7ba74c00.tar.xz
krb5-62a276e55287a06d66373f02202ab39c7ba74c00.zip
Add internal APIs for portable path manipulation
k5_path_split separates a path into dirname and basename. k5_path_join joins two paths. k5_path_isabs determines if a path is absolute. All three functions follow the Python path function semantics. Currently the test module doesn't run in the Windows build, but the Windows path semantics are tested in the Unix build using specially built objects. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25074 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/support/Makefile.in')
-rw-r--r--src/util/support/Makefile.in21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/util/support/Makefile.in b/src/util/support/Makefile.in
index 88520438f..8e4f70f3c 100644
--- a/src/util/support/Makefile.in
+++ b/src/util/support/Makefile.in
@@ -63,6 +63,7 @@ STLIBOBJS= \
utf8.o \
utf8_conv.o \
zap.o \
+ path.o \
$(IPC_ST_OBJ) \
$(STRLCPY_ST_OBJ) \
$(PRINTF_ST_OBJ) \
@@ -79,6 +80,7 @@ LIBOBJS= \
$(OUTPRE)utf8.$(OBJEXT) \
$(OUTPRE)utf8_conv.$(OBJEXT) \
$(OUTPRE)zap.$(OBJEXT) \
+ $(OUTPRE)path.$(OBJEXT) \
$(IPC_OBJ) \
$(STRLCPY_OBJ) \
$(PRINTF_OBJ) \
@@ -104,7 +106,8 @@ SRCS=\
$(srcdir)/mkstemp.c \
$(srcdir)/t_k5buf.c \
$(srcdir)/t_unal.c \
- $(srcdir)/zap.c
+ $(srcdir)/zap.c \
+ $(srcdir)/path.c
SHLIB_EXPDEPS =
# Add -lm if dumping thread stats, for sqrt.
@@ -155,13 +158,27 @@ T_K5BUF_OBJS= t_k5buf.o k5buf.o $(PRINTF_ST_OBJ)
t_k5buf: $(T_K5BUF_OBJS)
$(CC_LINK) -o t_k5buf $(T_K5BUF_OBJS)
+t_path: t_path.o path.o $(PRINTF_ST_OBJ)
+ $(CC_LINK) -o $@ t_path.o path.o $(PRINTF_ST_OBJ)
+
+t_path_win: t_path_win.o path_win.o $(PRINTF_ST_OBJ)
+ $(CC_LINK) -o $@ t_path_win.o path_win.o $(PRINTF_ST_OBJ)
+
+t_path_win.o: $(srcdir)/t_path.c
+ $(CC) $(ALL_CFLAGS) -DWINDOWS_PATHS -c $(srcdir)/t_path.c -o $@
+
+path_win.o: $(srcdir)/path.c
+ $(CC) $(ALL_CFLAGS) -DWINDOWS_PATHS -c $(srcdir)/path.c -o $@
+
t_unal: t_unal.o
$(CC_LINK) -o t_unal t_unal.o
-TEST_PROGS= t_k5buf t_unal
+TEST_PROGS= t_k5buf t_path t_path_win t_unal
check-unix:: $(TEST_PROGS)
./t_k5buf
+ ./t_path
+ ./t_path_win
./t_unal
clean::