Advertisement
Guest User

Untitled

a guest
May 30th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.96 KB | None | 0 0
  1. FFMPEG_RESAMPLE = -D__RESAMPLER__ -D__LIBAVRESAMPLE__
  2. FFMPEG_PKGCONFIG_RESAMPLE = libavresample
  3.  
  4. CC := gcc
  5. INCLUDES := $(shell pkg-config --cflags libavformat libavcodec libswscale libavutil $(FFMPEG_PKGCONFIG_RESAMPLE) sdl)
  6. CFLAGS := -Wall -ggdb $(FFMPEG_RESAMPLE) -std=c99
  7. LDFLAGS := $(shell pkg-config --libs libavformat libavcodec libswscale libavutil $(FFMPEG_PKGCONFIG_RESAMPLE) sdl) -lm
  8. EXE := tutorial07.out
  9.  
  10. #
  11. # This is here to prevent Make from deleting secondary files.
  12. #
  13. .SECONDARY:
  14. .PHONY: zip
  15.        
  16.  
  17. #
  18. # $< is the first dependency in the dependency list
  19. # $@ is the target name
  20. #
  21. all: dirs $(addprefix bin/, $(EXE)) tags
  22.  
  23. dirs:
  24.         mkdir -p obj
  25.         mkdir -p bin
  26.  
  27. tags: *.c
  28.         ctags *.c
  29.  
  30. bin/%.out: obj/%.o
  31.         $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
  32.  
  33. obj/%.o : %.c $(HEADERS)
  34.         $(CC) $(CFLAGS) $< $(INCLUDES) -c -o $@
  35.  
  36. clean:
  37.         rm -f obj/*
  38.         rm -f bin/*
  39.         rm -f tags
  40.         rm -f *.ppm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement