Fossil SCM
PellesC doesn't have pgmptr, update Makefile
Commit
f88368742db24bb4cf8ca6afb2b8547301d8898b
Parent
586b0eb1449d03b…
1 file changed
+2
-1
+2
-1
| --- win/Makefile.PellesCGMake | ||
| +++ win/Makefile.PellesCGMake | ||
| @@ -57,12 +57,13 @@ | ||
| 57 | 57 | LINKFLAGS=-subsystem:console -machine:$(TARGETMACHINE_LN) /LIBPATH:$(PellesCDir)\lib\win$(TARGETEXTEND) /LIBPATH:$(PellesCDir)\lib kernel32.lib advapi32.lib delayimp$(TARGETEXTEND).lib Wsock32.lib Crtmt$(TARGETEXTEND).lib |
| 58 | 58 | |
| 59 | 59 | # define standard C-compiler and flags, used to compile |
| 60 | 60 | # the fossil binary. Some special definitions follow for |
| 61 | 61 | # special files follow |
| 62 | +# Pelles C doesn't support _pgmptr in it's includes/libs, so map it to argv[0] | |
| 62 | 63 | CC=$(PellesCDir)\bin\pocc.exe |
| 63 | -DEFINES=-DFOSSIL_I18N=0 -Dstrncasecmp=memicmp -Dstrcasecmp=stricmp | |
| 64 | +DEFINES=-DFOSSIL_I18N=0 -Dstrncasecmp=memicmp -Dstrcasecmp=stricmp -D_pgmptr=g.argv[0] | |
| 64 | 65 | CCFLAGS=-T$(TARGETMACHINE_CC)-coff -Ot -W2 -Gd -Go -Ze -MT $(DEFINES) |
| 65 | 66 | INCLUDE=/I $(PellesCDir)\Include\Win /I $(PellesCDir)\Include /I $(ZLIBSRCDIR) /I $(SRCDIR) |
| 66 | 67 | |
| 67 | 68 | # define commands for building the windows resource files |
| 68 | 69 | RESOURCE=fossil.res |
| 69 | 70 |
| --- win/Makefile.PellesCGMake | |
| +++ win/Makefile.PellesCGMake | |
| @@ -57,12 +57,13 @@ | |
| 57 | LINKFLAGS=-subsystem:console -machine:$(TARGETMACHINE_LN) /LIBPATH:$(PellesCDir)\lib\win$(TARGETEXTEND) /LIBPATH:$(PellesCDir)\lib kernel32.lib advapi32.lib delayimp$(TARGETEXTEND).lib Wsock32.lib Crtmt$(TARGETEXTEND).lib |
| 58 | |
| 59 | # define standard C-compiler and flags, used to compile |
| 60 | # the fossil binary. Some special definitions follow for |
| 61 | # special files follow |
| 62 | CC=$(PellesCDir)\bin\pocc.exe |
| 63 | DEFINES=-DFOSSIL_I18N=0 -Dstrncasecmp=memicmp -Dstrcasecmp=stricmp |
| 64 | CCFLAGS=-T$(TARGETMACHINE_CC)-coff -Ot -W2 -Gd -Go -Ze -MT $(DEFINES) |
| 65 | INCLUDE=/I $(PellesCDir)\Include\Win /I $(PellesCDir)\Include /I $(ZLIBSRCDIR) /I $(SRCDIR) |
| 66 | |
| 67 | # define commands for building the windows resource files |
| 68 | RESOURCE=fossil.res |
| 69 |
| --- win/Makefile.PellesCGMake | |
| +++ win/Makefile.PellesCGMake | |
| @@ -57,12 +57,13 @@ | |
| 57 | LINKFLAGS=-subsystem:console -machine:$(TARGETMACHINE_LN) /LIBPATH:$(PellesCDir)\lib\win$(TARGETEXTEND) /LIBPATH:$(PellesCDir)\lib kernel32.lib advapi32.lib delayimp$(TARGETEXTEND).lib Wsock32.lib Crtmt$(TARGETEXTEND).lib |
| 58 | |
| 59 | # define standard C-compiler and flags, used to compile |
| 60 | # the fossil binary. Some special definitions follow for |
| 61 | # special files follow |
| 62 | # Pelles C doesn't support _pgmptr in it's includes/libs, so map it to argv[0] |
| 63 | CC=$(PellesCDir)\bin\pocc.exe |
| 64 | DEFINES=-DFOSSIL_I18N=0 -Dstrncasecmp=memicmp -Dstrcasecmp=stricmp -D_pgmptr=g.argv[0] |
| 65 | CCFLAGS=-T$(TARGETMACHINE_CC)-coff -Ot -W2 -Gd -Go -Ze -MT $(DEFINES) |
| 66 | INCLUDE=/I $(PellesCDir)\Include\Win /I $(PellesCDir)\Include /I $(ZLIBSRCDIR) /I $(SRCDIR) |
| 67 | |
| 68 | # define commands for building the windows resource files |
| 69 | RESOURCE=fossil.res |
| 70 |