2012-04-21 02:31:08 +00:00
|
|
|
diff -Naur PDCurses-3.4.orig/win32/mingwin32.mak PDCurses-3.4/win32/mingwin32.mak
|
|
|
|
--- PDCurses-3.4.orig/win32/mingwin32.mak 2008-07-21 14:31:36.000000000 +0200
|
|
|
|
+++ PDCurses-3.4/win32/mingwin32.mak 2012-04-20 15:28:55.071506378 +0200
|
|
|
|
@@ -19,6 +19,7 @@
|
|
|
|
PDCURSES_WIN_H = $(osdir)/pdcwin.h
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
+STRIP = strip
|
|
|
|
|
|
|
|
ifeq ($(DEBUG),Y)
|
|
|
|
CFLAGS = -g -Wall -DPDCDEBUG
|
|
|
|
@@ -30,8 +31,8 @@
|
2009-01-17 11:31:32 +00:00
|
|
|
|
|
|
|
CFLAGS += -I$(PDCURSES_SRCDIR)
|
|
|
|
|
|
|
|
-BASEDEF = $(PDCURSES_SRCDIR)\exp-base.def
|
|
|
|
-WIDEDEF = $(PDCURSES_SRCDIR)\exp-wide.def
|
|
|
|
+BASEDEF = $(PDCURSES_SRCDIR)/exp-base.def
|
|
|
|
+WIDEDEF = $(PDCURSES_SRCDIR)/exp-wide.def
|
|
|
|
|
|
|
|
DEFDEPS = $(BASEDEF)
|
|
|
|
|
2012-04-21 02:31:08 +00:00
|
|
|
@@ -50,7 +51,7 @@
|
2009-01-17 11:31:32 +00:00
|
|
|
|
|
|
|
ifeq ($(DLL),Y)
|
|
|
|
CFLAGS += -DPDC_DLL_BUILD
|
|
|
|
- LIBEXE = gcc $(DEFFILE)
|
2012-04-21 02:31:08 +00:00
|
|
|
+ LIBEXE = $(CC) $(DEFFILE)
|
2009-01-17 11:31:32 +00:00
|
|
|
LIBFLAGS = -Wl,--out-implib,pdcurses.a -shared -o
|
|
|
|
LIBCURSES = pdcurses.dll
|
|
|
|
LIBDEPS = $(LIBOBJS) $(PDCOBJS) $(DEFFILE)
|
2012-04-21 02:31:08 +00:00
|
|
|
@@ -70,24 +71,24 @@
|
2009-01-17 11:31:32 +00:00
|
|
|
libs: $(LIBCURSES)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
- -del *.o
|
|
|
|
- -del *.exe
|
|
|
|
- -del $(CLEAN)
|
|
|
|
+ -rm *.o
|
|
|
|
+ -rm *.exe
|
|
|
|
+ -rm $(CLEAN)
|
|
|
|
|
|
|
|
demos: $(DEMOS)
|
|
|
|
- strip *.exe
|
2012-04-21 02:31:08 +00:00
|
|
|
+ $(STRIP) *.exe
|
2009-01-17 11:31:32 +00:00
|
|
|
|
|
|
|
$(DEFFILE): $(DEFDEPS)
|
|
|
|
echo LIBRARY pdcurses > $@
|
|
|
|
echo EXPORTS >> $@
|
|
|
|
- type $(BASEDEF) >> $@
|
|
|
|
+ cat $(BASEDEF) >> $@
|
|
|
|
ifeq ($(WIDE),Y)
|
|
|
|
- type $(WIDEDEF) >> $@
|
|
|
|
+ cat $(WIDEDEF) >> $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(LIBCURSES) : $(LIBDEPS)
|
|
|
|
$(LIBEXE) $(LIBFLAGS) $@ $?
|
|
|
|
- -copy pdcurses.a panel.a
|
|
|
|
+ -cp pdcurses.a panel.a
|
|
|
|
|
|
|
|
$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
|
|
|
|
$(PDCOBJS) : $(PDCURSES_WIN_H)
|