1 #*******************************************************************
2 # uLan Communication - Makefile for uLan library compilation
5 # (C) Copyright 2001 by Pavel Pisa - Originator
7 # The uLan driver is distributed under the Gnu General Public License.
8 # See file COPYING for details.
10 # Originator reserve the right to use and publish sources
11 # under different conditions too. If third party contributors
12 # do not accept this condition, they can delete this statement
13 # and only GNU license will apply.
14 #*******************************************************************
18 default : library tests
25 # Basic compilation flags
26 CFLAGS += -Wall -Wstrict-prototypes
32 #CFLAGS += -std=gnu99 -DWITH_C99
34 # CFLAGS for the uLan library
35 # note: some macro expansions require at least -O
38 # uncomment the next line if you want a shared library
44 LIB_OBJS = ul_dbufbase.lo ul_dbufmore.lo ul_gsa.lo ul_gsacust.lo \
45 ul_gavlprim.lo ul_gavl.lo ul_hptree.lo \
46 ul_htimer.lo ul_htimbase.lo ul_htimmstime.lo \
47 ul_evcbase.lo ul_uniqid.lo ul_dbufflog.lo ul_logbase.lo \
57 $(CC) -o $@ $(LCFLAGS) -c $<
59 $(LIBULUT): $(LIB_OBJS)
66 $(CC) --shared -o $@ $(LCFLAGS) -c $<
68 LIBULUT = libulut.so.0.0.4
70 $(LIBULUT): $(LIB_OBJS)
71 ld --shared --soname=$(LIBULUT) -o $(LIBULUT) $^
72 ln -s -f $(LIBULUT) libulan.so
80 $(CC) -E $(CFLAGS) $< >$@
86 $(CC) $(CFLAGS) $(CPPFLAGS) -w -E -M *.c $(MORE_C_FILES) | \
87 sed 's/^\([^:]*\)\.o *:/\1.o \1.lo:/g' > depend
93 rm -f depend *.o *.lo *~ *.a *.so *.so.* ul_gavlchk ul_htimchk ul_gsachk test
95 tests: ul_gsachk ul_gavlchk ul_htimchk
97 ul_gavlchk: ul_gavlchk.o libulut.a
99 ul_htimchk: ul_htimchk.o libulut.a
101 ul_gsachk: ul_gsachk.o libulut.a