EMILE/libconfig/Makefile

38 lines
858 B
Makefile
Raw Normal View History

2007-08-25 21:31:10 +00:00
#
# (c) 2005-2007 Laurent Vivier <Laurent@lvivier.info>
#
TOP = $(shell pwd)
VPATH=$(TOP)
AS=$(CROSS_COMPILE)as
CC=$(CROSS_COMPILE)gcc
LD=$(CROSS_COMPILE)ld
AR=$(CROSS_COMPILE)ar
TARGET = native
CFLAGS += -nostdlib -nodefaultlibs -Wall -Werror -Wno-multichar
ifeq ($(TARGET), m68k-linux)
68000FLAGS = -m68000 -Wa,-m68000
CFLAGS += -fpic -O2 -Os
else
CFLAGS += -g
endif
CPPFLAGS = -I$(TOP)/../libstream
LIBRARY = libconfig.a
SOURCES = config_get_indexed_property.c config_get_next_property.c \
config_get_property.c config_remove_property.c \
config_set_property.c config_set_indexed_property.c \
2007-08-26 09:16:23 +00:00
config_remove_indexed_property.c config_find_indexed_property.c \
config_find_entry.c
2007-08-25 21:31:10 +00:00
HEADERS = libconfig.h
all:
test -d $(TARGET) || mkdir $(TARGET)
$(MAKE) -C $(TARGET) -f $(TOP)/Makefile $(LIBRARY) TOP=$(TOP)
include $(TOP)/../Rules.mk