OSDN Git Service

Slight build improvements v0_45
authorCharles Wilson <cwilso11@users.sourceforge.net>
Tue, 15 Sep 2009 06:05:46 +0000 (06:05 +0000)
committerCharles Wilson <cwilso11@users.sourceforge.net>
Tue, 15 Sep 2009 06:05:46 +0000 (06:05 +0000)
ChangeLog
Makefile
README

index 9224ad1..7a0f726 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-09-15  Charles Wilson  <cwilso11@users.sourceforge.net>
 
+       Slight build improvements.
+       * README: Update.
+       * Makefile: Rewrite dist rule to create a .tar.lzma instead
+       of a .zip (and don't create a tarbomb). 
+
+2009-09-15  Charles Wilson  <cwilso11@users.sourceforge.net>
+
        Package 0.44-1-mingw32 fixes.
        * pexports.c (main): Fix typo in usage statement.
        * pexports.h: Ensure ULONGLONG is defined.
index f67a1db..4f54e2e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,28 +1,42 @@
 CC=gcc -Wall
 LEX=flex
 YACC=bison
+PACKAGE_VERSION=0.45
+PACKAGE_NAME=pexports
+EXEEXT=.exe
+O=o
 
-DISTFILES=README COPYING ChangeLog Makefile hlex.l hparse.y pexports.h pexports.c str_tree.c str_tree.h
+DISTFILES=AUTHORS README COPYING ChangeLog \
+       Makefile hlex.l hparse.y pexports.h \
+       pexports.c str_tree.c str_tree.h
 
-OBJS=hlex.o hparse.o pexports.o str_tree.o
+OBJS=hlex.$(O) hparse.$(O) pexports.$(O) str_tree.$(O)
 
-all: pexports.exe
+all: pexports$(EXEEXT)
 
-pexports.exe: $(OBJS)
+pexports$(EXEEXT): $(OBJS)
        $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJS)
 
-pexports.o: pexports.c pexports.h str_tree.h
-str_tree.o: str_tree.c str_tree.h
-hlex.o: hlex.c hparse.h
+pexports.$(O): pexports.c pexports.h str_tree.h
+str_tree.$(O): str_tree.c str_tree.h
+hlex.$(O): hlex.c hparse.h
 hlex.c: hlex.l 
-hparse.o: hparse.c str_tree.h
+hparse.$(O): hparse.c str_tree.h
 hparse.h: hparse.c
 hparse.c: hparse.y
        bison -d $< -o $@
 
-pexports.zip: $(DISTFILES)
-       zip $@ $(DISTFILES)
+dist: $(DISTFILES)
+       mkdir -p /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
+       cp -p $(DISTFILES) /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/
+       cd /tmp && tar -chof - $(PACKAGE_NAME)-$(PACKAGE_VERSION) | xz --format=lzma >\
+               $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.lzma
+       mv /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.lzma .
+       rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 
 clean:
-       $(RM) *.o *.exe hlex.c hparse.c hparse.h pexports.zip
+       $(RM) -f *.o pexports$(EXEEXT) hlex.c hparse.c hparse.h 
+
+realclean: clean
+       $(RM) -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.lzma
 
diff --git a/README b/README
index 9a79cc9..6bce0ec 100644 (file)
--- a/README
+++ b/README
@@ -41,49 +41,55 @@ C parser, there are probably many conditions when it will fail
 (especially complex parameter types), although I it works fine for me.
 Please do not report bugs, but feel free to send patches.
 
-CHANGES FROM 0.43:
+RELEASE 0.45
 =================
+* Incorporate patches from 0.44-1-mingw32 release
 
-Handle also 64-bit executables. Make it work also if built as 64-bit
-code. Remove all gcc -Wall warnings. Make it compilable also with
-MSVC.Disable Wow64 file system redirection when running as a 32-bit
-process on 64-bit Windows. Distribute just sources.
+RELEASE 0.44
+=================
+* Handle also 64-bit executables. Make it work also if built as 64-bit
+  code. Remove all gcc -Wall warnings. Make it compilable also with
+  MSVC. Disable Wow64 file system redirection when running as a 32-bit
+  process on 64-bit Windows. Distribute just sources.
 
-CHANGES FROM 0.42:
+RELEASE 0.43
 =================
 * There were bug which led to wrong subcategorizing of symbols as
-code/data. I thought it was fixed in version on the site, but it turns
-out that almost year there was wrong version. I greatly apologize to
-everyone whom it cause problems and confusion.
+  code/data. I thought it was fixed in version on the site, but it turns
+  out that almost year there was wrong version. I greatly apologize to
+  everyone whom it cause problems and confusion.
 
-CHANGES FROM 0.41:
+RELEASE 0.42
 =================
 * Data/non-data symbols are now distinguished.
 
-CHANGES FROM 0.4:
+RELEASE 0.41
 =================
 * The header parser now accepts all kinds of parameters.
 
-CHANGES FROM 0.3:
+RELEASE 0.4
 =================
 * Function pointer parameters are now handled
 * Handling of function attributes improved
 * It is no longer always necessary to include windows.h for headers
-that required it but did not include it themselves.
+  that required it but did not include it themselves.
 
-CHANGES FROM 0.2:
+RELEASE 0.3
 =================
 * Completely rewritten parser (the previous one was *very* bad).
-It is now possible to generate .DEF files for windows system
-dlls (kernel32,user32,gdi32,shell32 etc)
+  It is now possible to generate .DEF files for windows system
+  dlls (kernel32,user32,gdi32,shell32 etc)
 * Enhanced symbol handling (symbols are sorted in a tree).
 
-CHANGES FROM 0.1:
+RELEASE 0.2
 =================
 * Fixed bug with unnamed parameters that are pointers.
 * Extra whitespace is no longer printed
 * Binary versions available for mingw32 and cygwin32
 
+RELEASE 0.1
+=================
+* Initial release.
 Pexports, Copyright (C) 1998 Anders Norlander
 This program has ABSOLUTELY NO WARRANTY; This is free software, and you are
 welcome to redistribute it under certain conditions; see COPYING