Dynamic libs for sdl1 needs work, should probably be deprecated anyway.

This commit is contained in:
William McBrine
2023-05-28 17:39:21 -04:00
parent 997576bab3
commit 8ab6f88ebe
2 changed files with 4 additions and 8 deletions

View File

@@ -36,7 +36,6 @@ LINK = $(CC)
LDFLAGS = $(LIBCURSES) $(SLIBS)
RANLIB = ranlib
LIBCURSES = pdcurses.a
LIBCURSES_SO = pdcurses.so
DEMOS += sdltest
@@ -44,10 +43,10 @@ DEMOS += sdltest
all: libs
libs: $(LIBCURSES) $(LIBCURSES_SO)
libs: $(LIBCURSES)
clean:
-rm -rf *.o trace $(LIBCURSES) $(LIBCURSES_SO) $(DEMOS)
-rm -rf *.o trace $(LIBCURSES) $(DEMOS)
demos: $(DEMOS)
ifneq ($(DEBUG),Y)
@@ -58,9 +57,6 @@ $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
ar rv $@ $?
-$(RANLIB) $@
$(LIBCURSES_SO) : $(LIBOBJS) $(PDCOBJS)
$(CC) -shared -o $@ $? $(SLIBS)
$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
$(PDCOBJS) : $(PDCURSES_SDL_H)
$(DEMOS) : $(PDCURSES_CURSES_H) $(LIBCURSES)

View File

@@ -9,8 +9,8 @@ Building
- On *nix (including Linux), run "make" in the sdl1 directory. There is
no configure script (yet?) for this port. This assumes a working
sdl-config, and GNU make. It builds the libraries pdcurses.a and
pdcurses.so.
sdl-config, and GNU make. It builds the library pdcurses.a (dynamic
lib not implemented).
- The makefile accepts the optional parameter "DEBUG=Y", and recognizes
the optional PDCURSES_SRCDIR environment variable, as with the console