Skip to content

Commit

Permalink
SDL2 Makefile had a recursive definition of CC and PREFIX (issue #302)…
Browse files Browse the repository at this point in the history
…. Also revised the GL Makefile to resemble the SDL2 one a little more closely. Still some work to be done there...
  • Loading branch information
Bill-Gray committed Oct 11, 2023
1 parent 7c26ec9 commit ac96c55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions gl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ common = $(PDCURSES_SRCDIR)/common

include $(common)/libobjs.mif

ifdef _w32
PREFIX=i686-w64-mingw32-
E = .exe
endif

ifdef _w64
PREFIX=x86_64-w64-mingw32-
E = .exe
endif
ifdef _w32
PREFIX=i686-w64-mingw32-

ifdef _a64
PREFIX = aarch64-w64-mingw32-
E = .exe
endif

Expand Down Expand Up @@ -107,7 +113,7 @@ ifeq ($(DLL),Y)
CLEAN = *$(DLL_SUFFIX)
endif
else
LIBEXE = $(AR)
LIBEXE = $(PREFIX)$(AR)
LIBFLAGS = rcv
LIBCURSES = lib$(LIBNAME).a
LDFLAGS = $(LIBCURSES) $(SLIBS)
Expand Down
4 changes: 2 additions & 2 deletions sdl2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ common = $(PDCURSES_SRCDIR)/common

include $(common)/libobjs.mif

PREFIX = $(shell $(CC) -dumpmachine)

ifdef _w32
PREFIX = i686-w64-mingw32
E = .exe
endif

ifdef _w64
PREFIX = x86_64-w64-mingw32
E = .exe
endif

ifdef _a64
PREFIX = aarch64-w64-mingw32
E = .exe
Expand Down

0 comments on commit ac96c55

Please sign in to comment.