1 #*******************************************************************
2 # uLan Communication - Makefile for uLan library compilation
4 # (C) Copyright 2000 by Pavel Pisa
6 # The uLan driver is distributed under the Gnu General Public Licence.
7 # See file COPYING for details.
9 # Author reserves right to use and publish sources for embedded
10 # applications under different conditions too.
11 #*******************************************************************
20 # Basic compilation flags
21 CFLAGS += -Wall -Wstrict-prototypes
26 # CFLAGS for the uLan library
27 # note: some macro expansions require at least -O
30 # uncomment the next line if you want a shared library
33 LIB_OBJS = ul_l_drv.lo ul_l_msg.lo ul_l_oi.lo ul_l_log.lo
41 MORE_C_FILES += ../ul_drv/ul_drv.c
43 ul_drv.lo: ../ul_drv/ul_drv.c
44 $(CC) -o $@ $(LCFLAGS) -D UL_WITH_PCI -I ../ul_drv -c $<
53 $(CC) -o $@ $(LCFLAGS) -c $<
55 $(LIBULAN): $(LIB_OBJS)
62 $(CC) --shared -o $@ $(LCFLAGS) -c $<
64 LIBULAN = libulan.so.0.0.4
66 $(LIBULAN): $(LIB_OBJS)
67 ld --shared --soname=$(LIBULAN) -o $(LIBULAN) $^
68 ln -s -f $(LIBULAN) libulan.so
72 ul_lib/ul_fd.h : ul_lib/ul_fd4dir.h
75 library : ul_lib/ul_fd.h
81 $(CC) -E $(CFLAGS) $< >$@
87 $(CC) $(CFLAGS) $(CPPFLAGS) -w -E -M *.c $(MORE_C_FILES) | \
88 sed 's/\.o/.lo/g' > depend
94 rm -f depend *.o *.lo *~ *.a *.so *.so.*