blob: ea26311fc66a7eeee0f6e27a729263b978f96a36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
ifeq ($(BUILD_SYS),sim)
UPARPORT_SRCS := $(addprefix hal/simdrivers/, \
uparport.c)
UPARPORT_LIBS :=
UPARPORT_FLAGS := -DSIM -DSIMULATOR -DRTAPI -UULAPI -D__MODULE__ -Drealtime
USERSRCS += $(UPARPORT_SRCS)
TARGETS += ../rtlib/hal_parport.so
endif
$(call TOOBJSDEPS, $(UPARPORT_SRCS)) : EXTRAFLAGS=-fPIC $(UPARPORT_FLAGS)
../rtlib/hal_parport.so: $(call TOOBJS, $(UPARPORT_SRCS)) $(UPARPORT_LIBS)
$(ECHO) Linking $(notdir $@)
mkdir -p ../rtlib
@rm -f $@
$(CC) -g $(LDFLAGS) -Wl,-soname,$(notdir $@) \
-shared -o $@ $^ $(UPARPORT_LIBS)
|