Add ./configure option to create release build.
This commit is contained in:
parent
68853090ab
commit
74adbca249
6 changed files with 123 additions and 60 deletions
|
|
@ -68,17 +68,22 @@ pcem_CXXFLAGS += -DUSE_NETWORKING
|
|||
pcem_SOURCES += ne2000.c nethandler.c wx-hostconfig.c
|
||||
pcem_LDADD += slirp/libslirp.a
|
||||
endif
|
||||
|
||||
if OS_MACOSX
|
||||
pcem_SOURCES += cdrom-ioctl-osx.c
|
||||
pcem_CFLAGS += -DPCEM_RENDER_WITH_TIMER -DPCEM_RENDER_TIMER_LOOP
|
||||
pcem_CXXFLAGS += -DPCEM_RENDER_WITH_TIMER -DPCEM_RENDER_TIMER_LOOP
|
||||
endif
|
||||
|
||||
if OS_LINUX
|
||||
pcem_SOURCES += cdrom-ioctl-linux.c
|
||||
endif
|
||||
|
||||
if !HAS_OFF64T
|
||||
pcem_CFLAGS += -Doff64_t=off_t -Dfopen64=fopen -Dfseeko64=fseek -Dftello64=ftell
|
||||
endif
|
||||
|
||||
if OS_MACOSX
|
||||
pcem_SOURCES += cdrom-ioctl-osx.c
|
||||
pcem_CFLAGS += -DPCEM_RENDER_WITH_TIMER -DPCEM_RENDER_TIMER_LOOP
|
||||
pcem_CXXFLAGS += -DPCEM_RENDER_WITH_TIMER -DPCEM_RENDER_TIMER_LOOP
|
||||
endif
|
||||
|
||||
if OS_LINUX
|
||||
pcem_SOURCES += cdrom-ioctl-linux.c
|
||||
endif
|
||||
|
||||
if !HAS_OFF64T
|
||||
pcem_CFLAGS += -Doff64_t=off_t -Dfopen64=fopen -Dfseeko64=fseek -Dftello64=ftell
|
||||
endif
|
||||
|
||||
if RELEASE_BUILD
|
||||
pcem_CFLAGS += -DRELEASE_BUILD
|
||||
pcem_CXXFLAGS += -DRELEASE_BUILD
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.15 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1994-2014 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
|
@ -107,6 +107,8 @@ bin_PROGRAMS = pcem$(EXEEXT)
|
|||
@OS_MACOSX_TRUE@am__append_13 = -DPCEM_RENDER_WITH_TIMER -DPCEM_RENDER_TIMER_LOOP
|
||||
@OS_LINUX_TRUE@am__append_14 = cdrom-ioctl-linux.c
|
||||
@HAS_OFF64T_FALSE@am__append_15 = -Doff64_t=off_t -Dfopen64=fopen -Dfseeko64=fseek -Dftello64=ftell
|
||||
@RELEASE_BUILD_TRUE@am__append_16 = -DRELEASE_BUILD
|
||||
@RELEASE_BUILD_TRUE@am__append_17 = -DRELEASE_BUILD
|
||||
subdir = src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
|
|
@ -479,6 +481,7 @@ pdfdir = @pdfdir@
|
|||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
runstatedir = @runstatedir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
|
|
@ -545,9 +548,9 @@ pcem_SOURCES = 386.c 386_dynarec.c 386_dynarec_ops.c 808x.c \
|
|||
$(am__append_9) $(am__append_11) $(am__append_14)
|
||||
pcem_CFLAGS = $(shell wx-config --cxxflags) $(shell sdl2-config \
|
||||
--cflags) $(am__append_5) $(am__append_7) $(am__append_12) \
|
||||
$(am__append_15)
|
||||
$(am__append_15) $(am__append_16)
|
||||
pcem_CXXFLAGS = $(shell wx-config --cxxflags) $(shell sdl2-config \
|
||||
--cflags) $(am__append_8) $(am__append_13)
|
||||
--cflags) $(am__append_8) $(am__append_13) $(am__append_17)
|
||||
pcem_LDADD = @LIBS@ $(am__append_1) $(am__append_10)
|
||||
all: all-am
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue