propagator/pcmcia/Makefile
2004-01-20 18:32:43 +00:00

49 lines
1.0 KiB
Makefile

#******************************************************************************
#
# Guillaume Cottenceau (gc@mandrakesoft.com)
#
# Copyright 2000 MandrakeSoft
#
# This software may be freely redistributed under the terms of the GNU
# public license.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#*****************************************************************************
top_dir = ..
include $(top_dir)/Makefile.common
all: libpcmcia.a libpcmcia-DIET.a
clean:
rm -f *.o libpcmcia.a
FLAGS = -Wall -Os -fomit-frame-pointer -pipe -c -I.. -D_BSD_SOURCE
OBJS = pcmcia_probe.o cardmgr.o lex_config.o yacc_config.o
OBJS-DIET = $(subst .o,-DIET.o,$(OBJS))
libpcmcia.a: $(OBJS)
ar -cru $@ $^
ranlib $@
libpcmcia-DIET.a: $(OBJS-DIET)
ar -cru $@ $^
ranlib $@
$(OBJS): %.o: %.c
gcc $(FLAGS) $(GLIBC_INCLUDES) -c $< -o $@
$(OBJS-DIET): %-DIET.o: %.c
gcc $(FLAGS) $(DIETLIBC_INCLUDES) -c $< -o $@