|
|
endif | endif |
| |
%.o: %.psr | %.o: %.psr |
./${PSR} @PSRFLAGS@ -cheader psrhead/$(patsubst %.o,%.h,$@) -fname $(patsubst %.o,%,$@) temppsr.c $< |
./${PSR} @PSRFLAGS@ -cheader psrhead/$(patsubst %.o,%.h,$@) -fname $(patsubst %.o,%,$@) temppsr_$(patsubst %.o,%,$@).c $< |
@CC@ @CFLAGS@ -O1 -o $@ -c temppsr.c |
@CC@ @CFLAGS@ -O1 -o $@ -c temppsr_$(patsubst %.o,%,$@).c |
rm -f temppsr.c |
rm -f temppsr_$(patsubst %.o,%,$@).c |
| |
ALL: @ZSNESEXE@ | ALL: @ZSNESEXE@ |
| |
|
|
rm -f @prefix@/bin/$(notdir @ZSNESEXE@) @prefix@/man/man5/zsnes.5 | rm -f @prefix@/bin/$(notdir @ZSNESEXE@) @prefix@/man/man5/zsnes.5 |
| |
clean: | clean: |
rm -f ${ZOBJS} ${PSR} psrhead/*.h temppsr.c @ZSNESEXE@ |
rm -f ${ZOBJS} ${PSR} psrhead/*.h temppsr_*.c @ZSNESEXE@ |
| |
distclean: | distclean: |
rm -f ${ZOBJS} ${PSR} psrhead/*.h temppsr.c @ZSNESEXE@ Makefile aclocal.m4 configure config.cache config.log config.status config.h |
rm -f ${ZOBJS} ${PSR} psrhead/*.h temppsr_*.c @ZSNESEXE@ Makefile aclocal.m4 configure config.cache config.log config.status config.h |
|
|
endif | endif |
| |
%${OE}: %.psr | %${OE}: %.psr |
${PSR} -D${OS} -cheader psrhead/$(patsubst %${OE},%.h,$@) -fname $(patsubst %${OE},%,$@) temppsr.c $< |
${PSR} -D${OS} -cheader psrhead/$(patsubst %${OE},%.h,$@) -fname $(patsubst %${OE},%,$@) temppsr_$(patsubst %${OE},%,$@).c $< |
ifneq (${ENV},msvc) | ifneq (${ENV},msvc) |
${CC} -o $@ -c temppsr.c |
${CC} -o $@ -c temppsr_$(patsubst %${OE},%,$@).c |
else | else |
cl /nologo /Ox /G6 /c /EHsc /D__WIN32__ /Fo$@ temppsr.c |
cl /nologo /Ox /G6 /c /EHsc /D__WIN32__ /Fo$@ temppsr_$(patsubst %${OE},%,$@).c |
endif | endif |
${DELETECOMMAND} temppsr.c |
${DELETECOMMAND} temppsr_$(patsubst %${OE},%,$@).c |
| |
ALL: zsnes | ALL: zsnes |
${DELETECOMMAND} version${OE} | ${DELETECOMMAND} version${OE} |