blob: acb858d4cb5f6fa05530ef2614556a3934f59301 [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
include common.mk
PC_DEPS = libdrm libtsm libudev dbus-1 libpng
PC_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(PC_DEPS))
PC_LIBS := $(shell $(PKG_CONFIG) --libs $(PC_DEPS))
CPPFLAGS += -std=c99 -D_GNU_SOURCE=1
CFLAGS += -Wall -Wsign-compare -Wpointer-arith -Wcast-qual -Wcast-align
CPPFLAGS += $(PC_CFLAGS) -I$(OUT)
LDLIBS += $(PC_LIBS)
$(OUT)glyphs.h: $(SRC)/font_to_c.py $(SRC)/ter-u16n.bdf
python2 $(SRC)/font_to_c.py $(SRC)/ter-u16n.bdf $(OUT)glyphs.h
font.o.depends: $(OUT)glyphs.h
CC_BINARY(frecon): $(C_OBJECTS)
all: CC_BINARY(frecon)
clean: CLEAN(frecon)
install: all
mkdir -p $(DESTDIR)/sbin
install -m 755 $(OUT)/frecon $(DESTDIR)/sbin