Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FFMPEG_RESAMPLE = -D__RESAMPLER__ -D__LIBAVRESAMPLE__
- FFMPEG_PKGCONFIG_RESAMPLE = libavresample
- CC := gcc
- INCLUDES := $(shell pkg-config --cflags libavformat libavcodec libswscale libavutil $(FFMPEG_PKGCONFIG_RESAMPLE) sdl)
- CFLAGS := -Wall -ggdb $(FFMPEG_RESAMPLE) -std=c99
- LDFLAGS := $(shell pkg-config --libs libavformat libavcodec libswscale libavutil $(FFMPEG_PKGCONFIG_RESAMPLE) sdl) -lm
- EXE := tutorial07.out
- #
- # This is here to prevent Make from deleting secondary files.
- #
- .SECONDARY:
- .PHONY: zip
- #
- # $< is the first dependency in the dependency list
- # $@ is the target name
- #
- all: dirs $(addprefix bin/, $(EXE)) tags
- dirs:
- mkdir -p obj
- mkdir -p bin
- tags: *.c
- ctags *.c
- bin/%.out: obj/%.o
- $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
- obj/%.o : %.c $(HEADERS)
- $(CC) $(CFLAGS) $< $(INCLUDES) -c -o $@
- clean:
- rm -f obj/*
- rm -f bin/*
- rm -f tags
- rm -f *.ppm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement