EMILE/libiso9660/Makefile

35 lines
759 B
Makefile
Raw Normal View History

2005-11-12 19:12:13 +00:00
#
# (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
#
TOP = $(shell pwd)
2005-11-16 14:00:27 +00:00
VPATH=$(TOP)
2005-11-30 00:54:04 +00:00
AS=$(CROSS_COMPILE)as
CC=$(CROSS_COMPILE)gcc
LD=$(CROSS_COMPILE)ld
AR=$(CROSS_COMPILE)ar
2005-11-12 22:22:22 +00:00
TARGET = native
2005-11-26 18:28:05 +00:00
CFLAGS = -nostdlib -nodefaultlibs -Wall -Werror -Wno-multichar
ifeq ($(TARGET), m68k-linux)
CFLAGS += -fpic -O2 -m68000 -Wa,-m68000 -Os
endif
2005-11-21 22:07:17 +00:00
CPPFLAGS = -I$(TOP)/../libstream
2005-11-12 19:12:13 +00:00
LIBRARY = libiso9660.a
SOURCES = iso9660_mount.c iso9660_opendir.c \
iso9660_closedir.c iso9660_readdir.c \
iso9660_is_directory.c iso9660_open.c \
2005-11-21 22:07:17 +00:00
iso9660_read.c iso9660_close.c \
2005-11-23 00:10:15 +00:00
iso9660_lseek.c iso9660_fstat.c
2005-11-12 19:12:13 +00:00
HEADERS = libiso9660.h
2005-11-12 19:12:13 +00:00
2005-11-12 22:22:22 +00:00
all:
test -d $(TARGET) || mkdir $(TARGET)
2005-11-26 08:47:17 +00:00
$(MAKE) -C $(TARGET) -f $(TOP)/Makefile $(LIBRARY) TOP=$(TOP)
2005-11-12 19:12:13 +00:00
2005-11-16 14:00:27 +00:00
include $(TOP)/../Rules.mk