Makefile 502 B

12345678910111213141516171819202122
  1. IMPORT_LIBS=lib/user32.lib \
  2. lib/kernel32.lib \
  3. lib/gdi32.lib \
  4. lib/opengl32.lib \
  5. lib/imm32.lib \
  6. lib/ole32.lib \
  7. lib/oleaut32.lib \
  8. lib/shell32.lib \
  9. lib/winmm.lib \
  10. lib/version.lib
  11. all: $(IMPORT_LIBS) test.exe
  12. lib/%.lib: def/%.def
  13. x86_64-w64-minwin64-dlltool -d $< -l $@
  14. test.exe: test.c include/minwin.h
  15. x86_64-w64-minwin64-gcc test.c -fno-builtin src/minwin.c -Llib -Iinclude -luser32 -lkernel32 -estart -o test.exe
  16. clean:
  17. @rm -f test.exe lib/*