diff --git a/Makefile.win32 b/Makefile.win32 index d583e99f40..531eb189e4 100644 --- a/Makefile.win32 +++ b/Makefile.win32 @@ -38,11 +38,14 @@ LIBS += $(libsnes) CFLAGS = -Wall -O3 -std=gnu99 -I. -all: $(TARGET) +all: $(TARGET) ssnes-joyconfig.exe $(TARGET): $(OBJ) $(CXX) -o $@ $(OBJ) $(LIBS) $(LDFLAGS) +ssnes-joyconfig.exe: conf/config_file.o tools/ssnes-joyconfig.o + $(CC) -o ssnes-joyconfig.exe $(SDL_LIBS) $(LDFLAGS) conf/config_file.o tools/ssnes-joyconfig.o + %.o: %.c $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< @@ -55,8 +58,10 @@ clean: rm -f hqflt/*.o rm -f hqflt/snes_ntsc/*.o rm -f $(TARGET) + rm -f ssnes-joyconfig.exe + rm -f tools/* dist: all - zip -r ssnes-win32.zip $(TARGET) ssnes.cfg snes.dll libxml2.dll iconv.dll zlib1.dll SDL.dll libsamplerate-0.dll + zip -r ssnes-win32.zip $(TARGET) ssnes.cfg snes.dll libxml2.dll iconv.dll zlib1.dll SDL.dll libsamplerate-0.dll ssnes-joyconfig.exe .PHONY: all install uninstall clean dist