mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 09:53:38 +02:00
brmlife: Initial version
Can draw 10x10 field of dots.
This commit is contained in:
commit
ce6f46ef1c
5 changed files with 163 additions and 0 deletions
28
Makefile
Normal file
28
Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
CFLAGS=-Wall -O3 -g
|
||||
|
||||
OBJS=main.o map.o
|
||||
|
||||
brmlife: main.o map.o
|
||||
$(CXX) -o $@ $^
|
||||
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) brmlife
|
||||
|
||||
|
||||
DEP_FILES_1 = $(foreach src,$(OBJS),.deps/$(src))
|
||||
DEP_FILES = $(DEP_FILES_1:%.o=%.P)
|
||||
|
||||
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
|
||||
|
||||
ifdef DEP_FILES
|
||||
-include $(DEP_FILES)
|
||||
endif
|
||||
|
||||
%.o: %.cc
|
||||
$(CXX) $(CFLAGS) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||
@-cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm .deps/$(*F).pp
|
Loading…
Add table
Add a link
Reference in a new issue