mirror of
https://github.com/holub/mame
synced 2025-05-18 19:49:35 +03:00
Remove "makedep" stuff from sdl.mak now that the core supports it. Also split sdl-config output between INCPATH and CCOMFLAGS for linux targets. makedepend now works. [Couriersud]
This commit is contained in:
parent
b4d803c875
commit
956e96048f
@ -348,7 +348,8 @@ endif
|
||||
endif
|
||||
|
||||
ifndef SDL_INSTALL_ROOT
|
||||
INCPATH += `sdl-config --cflags | sed 's:/SDL::'`
|
||||
INCPATH += `sdl-config --cflags | sed -e 's:/SDL::' -e 's:\(-D[^ ]*\)::g'`
|
||||
CCOMFLAGS += `sdl-config --cflags | sed -e 's:/SDL::' -e 's:\(-I[^ ]*\)::g'`
|
||||
LIBS += -lm `sdl-config --libs`
|
||||
|
||||
else
|
||||
@ -567,18 +568,4 @@ EXCLUDES = -x "*/.svn/*"
|
||||
zip:
|
||||
zip -rq ../mame_$(BUILD_VERSION).zip $(DISTFILES) $(EXCLUDES)
|
||||
|
||||
DEPENDFILE = .depend_$(EMULATOR)
|
||||
|
||||
makedepend:
|
||||
@echo Generating $(DEPENDFILE)
|
||||
rm -f $(DEPENDFILE)
|
||||
@for i in `find src -name "*.c"` ; do \
|
||||
echo processing $$i; \
|
||||
mt=`echo $$i | sed -e "s/\\.c/\\.o/" -e "s!^src/!$(OBJ)/!"` ; \
|
||||
g++ -MM -MT $$mt $(CDEFS) $(CCOMFLAGS) $$i 2>/dev/null \
|
||||
| sed -e "s!$$i!!g" >> $(DEPENDFILE) ; \
|
||||
done
|
||||
|
||||
-include $(DEPENDFILE)
|
||||
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user