Merge pull request #1067 from lemondrops/bugfix/makefile
Small Makefile fixes
This commit is contained in:
@@ -66,9 +66,6 @@ ifeq ($(DEV_BUILD), y)
|
|||||||
ifndef PAS16
|
ifndef PAS16
|
||||||
PAS16 := n
|
PAS16 := n
|
||||||
endif
|
endif
|
||||||
ifndef PORTABLE3
|
|
||||||
PORTABLE3 := y
|
|
||||||
endif
|
|
||||||
ifndef PS1M2133
|
ifndef PS1M2133
|
||||||
PS1M2133 := y
|
PS1M2133 := y
|
||||||
endif
|
endif
|
||||||
@@ -160,9 +157,6 @@ else
|
|||||||
ifndef PAS16
|
ifndef PAS16
|
||||||
PAS16 := n
|
PAS16 := n
|
||||||
endif
|
endif
|
||||||
ifndef PORTABLE3
|
|
||||||
PORTABLE3 := n
|
|
||||||
endif
|
|
||||||
ifndef PS1M2133
|
ifndef PS1M2133
|
||||||
PS1M2133 := n
|
PS1M2133 := n
|
||||||
endif
|
endif
|
||||||
@@ -564,10 +558,6 @@ OPTS += -DUSE_PAS16
|
|||||||
DEVBROBJ += snd_pas16.o
|
DEVBROBJ += snd_pas16.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PORTABLE3), y)
|
|
||||||
OPTS += -DUSE_PORTABLE3
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(PS1M2133), y)
|
ifeq ($(PS1M2133), y)
|
||||||
OPTS += -DUSE_PS1M2133
|
OPTS += -DUSE_PS1M2133
|
||||||
endif
|
endif
|
||||||
@@ -885,15 +875,15 @@ else
|
|||||||
|
|
||||||
%.d: %.c $(wildcard $*.d)
|
%.d: %.c $(wildcard $*.d)
|
||||||
@echo $<
|
@echo $<
|
||||||
@$(CC) $(CFLAGS) $(DEPS) -E $< >NUL
|
@$(CC) $(CFLAGS) $(DEPS) -E $< >/dev/null
|
||||||
|
|
||||||
%.d: %.cc $(wildcard $*.d)
|
%.d: %.cc $(wildcard $*.d)
|
||||||
@echo $<
|
@echo $<
|
||||||
@$(CPP) $(CXXFLAGS) $(DEPS) -E $< >NUL
|
@$(CPP) $(CXXFLAGS) $(DEPS) -E $< >/dev/null
|
||||||
|
|
||||||
%.d: %.cpp $(wildcard $*.d)
|
%.d: %.cpp $(wildcard $*.d)
|
||||||
@echo $<
|
@echo $<
|
||||||
@$(CPP) $(CXXFLAGS) $(DEPS) -E $< >NUL
|
@$(CPP) $(CXXFLAGS) $(DEPS) -E $< >/dev/null
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@@ -931,18 +921,18 @@ endif
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo Cleaning objects..
|
@echo Cleaning objects..
|
||||||
@-rm -f *.o 2>NUL
|
@-rm -f *.o 2>/dev/null
|
||||||
@-rm -f *.res 2>NUL
|
@-rm -f *.res 2>/dev/null
|
||||||
|
|
||||||
clobber: clean
|
clobber: clean
|
||||||
@echo Cleaning executables..
|
@echo Cleaning executables..
|
||||||
@-rm -f *.d 2>NUL
|
@-rm -f *.d 2>/dev/null
|
||||||
@-rm -f *.exe 2>NUL
|
@-rm -f *.exe 2>/dev/null
|
||||||
# @-rm -f $(DEPFILE) 2>NUL
|
# @-rm -f $(DEPFILE) 2>/dev/null
|
||||||
|
|
||||||
ifneq ($(AUTODEP), y)
|
ifneq ($(AUTODEP), y)
|
||||||
depclean:
|
depclean:
|
||||||
@-rm -f $(DEPFILE) 2>NUL
|
@-rm -f $(DEPFILE) 2>/dev/null
|
||||||
@echo Creating dependencies..
|
@echo Creating dependencies..
|
||||||
@echo # Run "make depends" to re-create this file. >$(DEPFILE)
|
@echo # Run "make depends" to re-create this file. >$(DEPFILE)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user