hgr2rgbntsc/makefile

29 lines
564 B
Makefile
Raw Normal View History

2014-12-29 22:46:24 +00:00
# --- Platform ---
# http://stackoverflow.com/questions/714100/os-detecting-makefile
ifeq ($(OS),Windows_NT)
echo "Use MSVC Solution/Project"
else
2014-12-29 22:58:09 +00:00
UNAME = $(shell uname -s)
2014-12-28 18:10:59 +00:00
2014-12-29 22:58:09 +00:00
ifeq ($(UNAME),Linux)
TARGET=bin/hgr2rgb.elf
endif
ifeq ($(UNAME),Darwin)
2014-12-29 22:46:24 +00:00
TARGET=bin/hgr2rgb.osx
endif
endif
# --- Common ---
2014-12-28 18:10:59 +00:00
2014-12-29 22:46:24 +00:00
all: $(TARGET)
2014-12-28 18:10:59 +00:00
clean:
2014-12-29 22:46:24 +00:00
@if [ -a $(TARGET) ] ; then rm $(TARGET); fi;
C_FLAGS=-Wall -Wextra -Isrc
DEP=src/main.cpp src/wsvideo.cpp src/wsvideo.h src/cs.cpp src/cs.h src/StdAfx.h
2014-12-28 18:10:59 +00:00
2014-12-29 22:46:24 +00:00
$(TARGET): $(DEP)
g++ $(C_FLAGS) $< -o $@
2014-12-28 18:10:59 +00:00