Previous 199869 Revisions Next

r34367 Tuesday 13th January, 2015 at 10:50:42 UTC by Miodrag Milanović
Use $(INCPATH) only where needed
[/trunk]makefile
[src/lib]lib.mak

trunk/makefile
r242878r242879
509509
510510# CFLAGS is defined based on C or C++ targets
511511# (remember, expansion only happens when used, so doing it here is ok)
512CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS)
512CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS) $(INCPATH)
513513
514514# we compile C-only to C89 standard with GNU extensions
515515# we compile C++ code to C++98 standard with GNU extensions
r242878r242879
864864include $(SRC)/regtests/regtests.mak
865865
866866# combine the various definitions to one
867CCOMFLAGS += $(INCPATH)
868867CDEFS = $(DEFS)
869868
870869# TODO: -x c++ should not be hard-coded
r242878r242879
10201019ifeq ($(TARGETOS),macosx)
10211020$(OBJ)/%.o: $(SRC)/%.m | $(OSPREBUILD)
10221021   @echo Objective-C compiling $<...
1023   $(CC) $(CDEFS) $(COBJFLAGS) $(CCOMFLAGS) -c $< -o $@
1022   $(CC) $(CDEFS) $(COBJFLAGS) $(CCOMFLAGS) $(INCPATH) -c $< -o $@
10241023endif
10251024
10261025
trunk/src/lib/lib.mak
r242878r242879
480480
481481$(LIBOBJ)/portmidi/%.o: $(3RDPARTY)/portmidi/%.c | $(OSPREBUILD)
482482   @echo Compiling $<...
483   $(CC) $(CDEFS) $(PMOPTS) $(CCOMFLAGS) $(CONLYFLAGS) -I$(3RDPARTY)/portmidi/pm_common -I$(3RDPARTY)/portmidi/porttime -c $< -o $@
483   $(CC) $(CDEFS) $(PMOPTS) $(CCOMFLAGS) $(CONLYFLAGS) $(INCPATH) -I$(3RDPARTY)/portmidi/pm_common -I$(3RDPARTY)/portmidi/porttime -c $< -o $@
484484
485485ifeq ($(TARGETOS),macosx)
486486$(LIBOBJ)/portmidi/%.o: $(3RDPARTY)/portmidi/%.m | $(OSPREBUILD)
487487   @echo Objective-C compiling $<...
488   $(CC) $(CDEFS) $(COBJFLAGS) $(CCOMFLAGS) -c $< -o $@
488   $(CC) $(CDEFS) $(COBJFLAGS) $(CCOMFLAGS) $(INCPATH) -c $< -o $@
489489endif
490490
491491#-------------------------------------------------
r242878r242879
544544
545545$(LIBOBJ)/lua/lsqlite3/%.o: $(3RDPARTY)/lsqlite3/%.c | $(OSPREBUILD)
546546   @echo Compiling $<...
547   $(CC) $(CDEFS) $(CCOMFLAGS) $(CONLYFLAGS) -DLUA_COMPAT_ALL $(LUA_FLAGS) -c $< -o $@
547   $(CC) $(CDEFS) $(CCOMFLAGS) $(CONLYFLAGS) -DLUA_COMPAT_ALL -I$(3RDPARTY)/lua/src -I$(3RDPARTY) $(LUA_FLAGS) -c $< -o $@
548548
549549#-------------------------------------------------
550550# web library objects


Previous 199869 Revisions Next


© 1997-2024 The MAME Team