OSDN Git Service

Forgot Makefile v0_44
authorCharles Wilson <cwilso11@users.sourceforge.net>
Tue, 15 Sep 2009 05:38:43 +0000 (05:38 +0000)
committerCharles Wilson <cwilso11@users.sourceforge.net>
Tue, 15 Sep 2009 05:38:43 +0000 (05:38 +0000)
ChangeLog
Makefile [new file with mode: 0644]

index b2769e1..d96bf6a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
        compilable also with MSVC. Disable Wow64 file system redirection
        when running as a 32-bit process on 64-bit Windows. Bump version
        to 0.44.
+       * Makefile: New.
        * pe.h: Not needed, removed.
        * hparse.h: Remove generated file.
 
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..80428cc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+CC=gcc -Wall
+
+DISTFILES=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
+
+all: pexports.exe
+
+pexports.exe: $(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
+hlex.c: hlex.l 
+hparse.o: hparse.c str_tree.h
+hparse.h: hparse.c
+hparse.c: hparse.y
+       bison -d $< -o $@
+
+pexports.zip: $(DISTFILES)
+       zip $@ $(DISTFILES)
+
+clean:
+       $(RM) *.o *.exe hlex.c hparse.c hparse.h pexports.zip
+