Makefile: remove tv related cruft, set CC to GCC by default

a. is anyone *really* gonna use the makefile to build on webos
me no think so
b. set it to clang if you want
tbh idk how it worked previously considering i didnt set it
master
Drake 3 years ago
parent 3a629b76f4
commit b7ea8dccde
No known key found for this signature in database
GPG Key ID: 9B83455BD94F12A3

@ -1,27 +1,17 @@
ifndef CC
CC =
endif
ifndef IP
IP := 192.168.1.10
#use my tv's ip if not passed to makefile
CC = gcc
endif
target := $(shell ${CC} -dumpmachine)
ifeq (${target}, arm-webos-linux-gnueabi)
$(info Setting compiler include flags for webOS...)
ifndef CC_FLAGS
#guess we gotta define this if it no exist, but imagine not needing custom cxx flags
CC_FLAGS :=
endif
CC_FLAGS := ${CC_FLAGS} -I/opt/webos-sdk-x86_64/1.0.g/sysroots/armv7a-neon-webos-linux-gnueabi/usr/include --sysroot=/opt/webos-sdk-x86_64/1.0.g/sysroots/armv7a-neon-webos-linux-gnueabi
endif
ifndef PROGS
PROGS := whoami arch ls pwd basename uname yes
endif
all:
mkdir -p bin
for prog in ${PROGS}; do ${CC} -o bin/$$prog -Ilib ${CC_FLAGS} src/$$prog.c; done
tv:
scp hbpm root@${IP}:/media/internal/bin
verbose:
mkdir -p bin
for prog in ${PROGS}; do ${CC} -v -o bin/$$prog ${CC_FLAGS} src/$$prog.c; done

Loading…
Cancel
Save