BlinkenArea - GitList
Repositories
Blog
Wiki
Blinker
Code
Commits
Branches
Tags
Search
Tree:
3032550
Branches
Tags
master
Blinker
src
Makefile
first version, plays videos to stdout
Stefan Schuermans
commited
3032550
at 2011-10-23 11:37:40
Makefile
Blame
History
Raw
SRCS=$(wildcard noarch/*.cpp) $(wildcard linux/*.cpp) TARGET=Blinker CPP=g++ INCLUDE=-Inoarch -Ilinux CFLAGS=-Wall -Wextra -g2 LDFLAGS= LIBS=-lBlinkenLib SRCS_BASE=$(patsubst %.cpp,%,$(SRCS)) DEPS=$(addsuffix .d,$(SRCS_BASE)) OBJS=$(addsuffix .o,$(SRCS_BASE)) .PHONY: all clean .SUFFIXES: .SECONDARY: all: deps $(TARGET) ifneq ($(MAKECMDGOALS),clean) include deps endif deps: $(DEPS) cat /dev/null $+ >$@ %.d: %.cpp Makefile $(CPP) $(INCLUDE) $(CFLAGS) -M -o $@ $< sed -i 1s!^!$(dir $<)! $@ %.o: %.cpp Makefile $(CPP) $(INCLUDE) $(CFLAGS) -c -o $@ $< $(TARGET): $(OBJS) $(CPP) $(LDFLAGS) -o $@ $+ $(LIBS) clean: rm -f deps $(DEPS) $(OBJS) $(TARGET)