summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.sco
blob: 993861570ac7e56f6a86b56199080f33023a7acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
AROPT = cr
export_dynamic = -Wl,-Bexport

DLSUFFIX = .so
ifeq ($(GCC), yes)
CFLAGS_SL = -fpic
else
CFLAGS_SL = -K PIC
endif

# Rule for building a shared library from a single .o file
%.so: %.o
	$(LD) -G -Bdynamic -o $@ $<