Makefile.win 382 B

1234567891011121314
  1. OBJS=utils.o saop.o base64.o auth.o win32-service.o config.o
  2. CFLAGS+=-Wall -Wshadow -Werror -mthreads -Ipthreads/
  3. CC=mingw32-gcc
  4. LDFLAGS=-lpthreadGC2 -lws2_32 -Lpthreads/
  5. all:saop.exe
  6. saop.exe: $(OBJS)
  7. $(CC) $(OBJS) $(LDFLAGS) -o saop.exe
  8. clean:
  9. rm -f $(OBJS) saop.exe
  10. installer: saop.exe
  11. mingw32-strip --strip-all saop.exe && cd win32-installer && makensis saop.nsi && cd ..