logo

bytemedia

Home to byte-level sounds, images, videos, … git clone https://hacktivis.me/git/bytemedia.git

Makefile (1182B)


  1. WAYLAND_PROTOCOLS=`pkg-config --variable=pkgdatadir wayland-protocols`
  2. WAYLAND_SCANNER=`pkg-config --variable=wayland_scanner wayland-scanner`
  3. CFLAGS=-Os -march=native -mtune=native -ffunction-sections -fdata-sections
  4. LDFLAGS=-Wl,--gc-sections
  5. .SUFFIXES: .au
  6. all: au8b_8kHz au8b_44.1kHz SDL_YUV_visualisation wayland kagome_kagome.au battery_low.au battery_back.au dev_draw
  7. SDL_YUV_visualisation: SDL_YUV_visualisation.c
  8. $(CC) $(CFLAGS) SDL_YUV_visualisation.c -o SDL_YUV_visualisation `sdl2-config --cflags --libs`
  9. xdg-shell-client-protocol.h:
  10. $(WAYLAND_SCANNER) client-header $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
  11. xdg-shell-protocol.c: xdg-shell-client-protocol.h
  12. $(WAYLAND_SCANNER) private-code $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
  13. wayland: wayland.c xdg-shell-protocol.c
  14. $(CC) $(CFLAGS) -o $@ $< xdg-shell-protocol.c -lwayland-client -lrt $(LDFLAGS)
  15. strip --strip-all wayland
  16. dev_draw: dev_draw.c xdg-shell-protocol.c Makefile
  17. $(CC) $(CFLAGS) -o $@ $< xdg-shell-protocol.c -lwayland-client -lrt $(LDFLAGS)
  18. .c.au:
  19. $(CC) $(CFLAGS) -o $* $< -lm
  20. ./$* > $@
  21. rm -f $*
  22. .PHONY: clean
  23. clean:
  24. rm SDL_YUV_visualisation wayland dev_draw