more msdos cross-compile pdcurses warning suppression
This commit is contained in:
@@ -114,9 +114,11 @@ override TARGET_LIBS += -lSDL
|
|||||||
endif
|
endif
|
||||||
override BUILDMORE += $(PDCLIB)
|
override BUILDMORE += $(PDCLIB)
|
||||||
override CLEANMORE += rm -f $(PDCLIB) ;
|
override CLEANMORE += rm -f $(PDCLIB) ;
|
||||||
|
ifndef CROSS_TO_MSDOS
|
||||||
# Rules for PDCurses files
|
# Rules for PDCurses files
|
||||||
$(TARGETPFX)%.o : $(PDCTOP)/pdcurses/%.c
|
$(TARGETPFX)%.o : $(PDCTOP)/pdcurses/%.c
|
||||||
$(TARGET_CC) $(PDCINCL) $(TARGET_CFLAGS) -o$@ $<
|
$(TARGET_CC) $(PDCINCL) $(TARGET_CFLAGS) -o$@ $<
|
||||||
|
endif # CROSS_TO_MSDOS
|
||||||
else #WANT_WIN_CURSES
|
else #WANT_WIN_CURSES
|
||||||
PDCURSESDEF=
|
PDCURSESDEF=
|
||||||
PDCLIBOBJS=
|
PDCLIBOBJS=
|
||||||
@@ -157,9 +159,8 @@ MSDOS_TARGET_CFLAGS = -c -O -I../include -I../sys/msdos -I../win/share \
|
|||||||
-DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_TARGET -DCROSS_TO_MSDOS \
|
-DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_TARGET -DCROSS_TO_MSDOS \
|
||||||
-Wall -Wextra -Wno-missing-field-initializers -Wimplicit \
|
-Wall -Wextra -Wno-missing-field-initializers -Wimplicit \
|
||||||
-Wreturn-type -Wunused -Wformat -Wswitch -Wshadow -Wwrite-strings \
|
-Wreturn-type -Wunused -Wformat -Wswitch -Wshadow -Wwrite-strings \
|
||||||
-Wimplicit-function-declaration -Wimplicit-int \
|
-Wimplicit-function-declaration -Wimplicit-int -Wmissing-parameter-type
|
||||||
-Wmissing-declarations -Wmissing-parameter-type
|
override TARGET_CFLAGS = $(MSDOS_TARGET_CFLAGS) -Wmissing-declarations -Wmissing-prototypes
|
||||||
override TARGET_CFLAGS = $(MSDOS_TARGET_CFLAGS) -Wmissing-prototypes
|
|
||||||
override TARGET_CXXFLAGS = $(TARGET_CFLAGS)
|
override TARGET_CXXFLAGS = $(TARGET_CFLAGS)
|
||||||
override TARGET_LINK = $(TOOLTOP1)/i586-pc-msdosdjgpp-gcc
|
override TARGET_LINK = $(TOOLTOP1)/i586-pc-msdosdjgpp-gcc
|
||||||
override TARGET_LFLAGS=
|
override TARGET_LFLAGS=
|
||||||
@@ -188,9 +189,14 @@ override CLEANMORE += rm -f -r $(TARGETDIR) ;
|
|||||||
VARDATND += nhtiles.bmp
|
VARDATND += nhtiles.bmp
|
||||||
#
|
#
|
||||||
ifdef WANT_WIN_CURSES
|
ifdef WANT_WIN_CURSES
|
||||||
|
# Rules for PDCurses files
|
||||||
|
$(TARGETPFX)%.o : $(PDCTOP)/pdcurses/%.c
|
||||||
|
$(TARGET_CC) $(PDCINCL) $(MSDOS_TARGET_CFLAGS) -Wno-unused-parameter \
|
||||||
|
-Wno-missing-prototypes -o$@ $<
|
||||||
# rules for pdcurses dos-specific files
|
# rules for pdcurses dos-specific files
|
||||||
$(TARGETPFX)%.o : $(PDCTOP)/dos/%.c
|
$(TARGETPFX)%.o : $(PDCTOP)/dos/%.c
|
||||||
$(TARGET_CC) $(PDCINCL) $(MSDOS_TARGET_CFLAGS) -Wno-unused-parameter -o$@ $<
|
$(TARGET_CC) $(PDCINCL) $(MSDOS_TARGET_CFLAGS) -Wno-unused-parameter \
|
||||||
|
-Wno-missing-prototypes -o$@ $<
|
||||||
endif # WANT_WIN_CURSES
|
endif # WANT_WIN_CURSES
|
||||||
#
|
#
|
||||||
# Rule for files in sys/msdos
|
# Rule for files in sys/msdos
|
||||||
|
|||||||
Reference in New Issue
Block a user