2 L4DIR ?= $(PKGDIR)/../..
3 DOPEDIR ?= $(L4DIR_ABS)/pkg/dope
6 PRIVATE_INCDIR = $(SRC_DIR)/../../include/server
7 SRC_CC := big_mouse.cc main.cc screen.cc view_stack.cc \
8 user_state.cc plugin.cc input_driver.cc object_gc.cc \
11 #OBJS += binary_default.tff.o
15 STATIC_PLUGINS += mag-input-libinput
16 STATIC_PLUGINS += mag-input-event
17 STATIC_PLUGINS += mag-client_fb
18 STATIC_PLUGINS += mag-mag_client
20 REQUIRES_LIBS:= libsupc++ libdl mag-gfx lua++
21 REQUIRES_LIBS += $(STATIC_PLUGINS)
22 #LDFLAGS += --export-dynamic
24 CPPFLAGS += -fvisibility=hidden
28 vpath %.ttf $(SRC_DIR)
30 include $(L4DIR)/mk/prog.mk
32 #symbol_name = _binary_$(subst .,_,$(subst binary_,,$(subst .o,,$@)))
34 %.bin.o: $(SRC_DIR)/% $(SRC_DIR)/Makefile $(ELF_PATCHER)
36 $(VERBOSE)(TARGETDIR=$$PWD && cd $(SRC_DIR) && $(OBJCOPY) -I binary -B $(BFD_ARCH) -O $(OFORMAT) $(notdir $<) $$TARGETDIR/$@ )
37 $(VERBOSE)$(ELF_PATCHER) $@ --min-section-align=4
39 #binary_%.o: $(SRC_DIR)/%
41 # $(VERBOSE)hexdump -ve '/1 "0x%02x,"' $< |\
42 # sed '1s/^/char $(symbol_name)_start[] __attribute__((aligned (4))) = {/;$$s/,$$/};/;$$a\' |\
43 # $(CC) -x c -o $@ -c -