Browse Source

put includes into <libowfat/*.h>

master
Felix von Leitner 4 years ago
parent
commit
4b0bc56f9c
3 changed files with 30 additions and 7 deletions
  1. +1
    -0
      .cvsignore
  2. +14
    -3
      GNUmakefile
  3. +15
    -4
      Makefile

+ 1
- 0
.cvsignore View File

@ -26,3 +26,4 @@ ent
tags
entities.h
havepread.h
libowfat

+ 14
- 3
GNUmakefile View File

@ -13,7 +13,7 @@ LIBS=byte.a fmt.a scan.a str.a uint.a open.a stralloc.a unix.a socket.a \
buffer.a mmap.a taia.a tai.a dns.a case.a mult.a array.a io.a \
textcode.a cdb.a critbit.a
all: ent $(LIBS) libowfat.a libsocket t
all: headers ent $(LIBS) libowfat.a libsocket t
CROSS=
#CROSS=i686-mingw-
@ -204,9 +204,18 @@ openreadclose.h readclose.h ndelay.h array.h io.h safemult.h iob.h havealloca.h
errmsg.h cdb.h cdb_make.h rangecheck.h iarray.h va_narg.h isset.h \
compiletimeassert.h critbit.h
libowfat:
-mkdir libowfat
.PHONY: headers
headers: libowfat $(patsubst %.h,libowfat/%.h,$(INCLUDES))
libowfat/%.h: %.h
ln -f $< $@
install-inc:
install -d $(DESTDIR)$(INCLUDEDIR)
install -m 644 $(INCLUDES) $(DESTDIR)$(INCLUDEDIR)
install -d $(DESTDIR)$(INCLUDEDIR)/libowfat
install -m 644 $(INCLUDES) $(DESTDIR)$(INCLUDEDIR)/libowfat
install-lib: libowfat.a
install -d $(DESTDIR)$(LIBDIR)
@ -220,6 +229,8 @@ install: install-inc install-man install-lib
uninstall:
rm -f $(patsubst %.h,$(INCLUDEDIR)/%.h,$(INCLUDES))
rm -f $(INCLUDEDIR)/libowfat/*.h
rmdir -f $(INCLUDEDIR)/libowfat
rm -f $(patsubst %.3,$(MAN3DIR)/%.3,$(notdir $(wildcard */*.3)))
rm -f $(LIBDIR)/libowfat.a


+ 15
- 4
Makefile View File

@ -14,7 +14,7 @@ LIBS=byte.a fmt.a scan.a str.a uint.a open.a stralloc.a unix.a socket.a \
buffer.a mmap.a taia.a tai.a dns.a case.a mult.a array.a io.a \
textcode.a cdb.a critbit.a
all: ent $(LIBS) libowfat.a libsocket t
all: headers ent $(LIBS) libowfat.a libsocket t
CROSS=
#CROSS=i686-mingw-
@ -791,9 +791,18 @@ openreadclose.h readclose.h ndelay.h array.h io.h safemult.h iob.h havealloca.h
errmsg.h cdb.h cdb_make.h rangecheck.h iarray.h va_narg.h isset.h \
compiletimeassert.h critbit.h
libowfat:
-mkdir libowfat
.PHONY: headers
headers: libowfat $(patsubst %.h,libowfat/%.h,$(INCLUDES))
libowfat/%.h: %.h
ln -f $< $@
install-inc:
install -d $(DESTDIR)$(INCLUDEDIR)
install -m 644 $(INCLUDES) $(DESTDIR)$(INCLUDEDIR)
install -d $(DESTDIR)$(INCLUDEDIR)/libowfat
install -m 644 $(INCLUDES) $(DESTDIR)$(INCLUDEDIR)/libowfat
install-lib: libowfat.a
install -d $(DESTDIR)$(LIBDIR)
@ -807,10 +816,12 @@ install: install-inc install-man install-lib
uninstall:
rm -f $(patsubst %.h,$(INCLUDEDIR)/%.h,$(INCLUDES))
rm -f $(INCLUDEDIR)/libowfat/*.h
rmdir -f $(INCLUDEDIR)/libowfat
rm -f $(patsubst %.3,$(MAN3DIR)/%.3,$(notdir $(wildcard */*.3)))
rm -f $(LIBDIR)/libowfat.a
VERSION=libowfat-0.31
VERSION=libowfat-0.32
CURNAME=libowfat-0.31
tar: clean rename


Loading…
Cancel
Save