mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-27 04:11:57 +01:00
70e3df6d5d
ntfs mount settings (new libntfs makes problems)
34 lines
719 B
Makefile
34 lines
719 B
Makefile
# Quick'n'dirty makefile [BC] v2
|
|
|
|
ifeq ($(strip $(DEVKITPPC)),)
|
|
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
|
|
endif
|
|
|
|
include $(DEVKITPPC)/wii_rules
|
|
|
|
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
|
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
|
|
|
CFLAGS := -O3 $(MACHDEP) -I$(LIBOGC_INC) -DHAVE_CONFIG_H
|
|
|
|
SOURCES := source
|
|
LIB := ntfs
|
|
CFILES := $(wildcard $(SOURCES)/*.c)
|
|
OFILES := $(CFILES:.c=.o)
|
|
ARC := lib$(LIB).a
|
|
HDR := ntfs.h
|
|
|
|
all : $(OFILES)
|
|
$(AR) -r $(ARC) $(OFILES)
|
|
|
|
clean :
|
|
rm -f $(OFILES) $(ARC)
|
|
|
|
install :
|
|
cp -f $(ARC) ../../lib
|
|
cp -f $(HDR) ../../include
|
|
cp -f ntfsfile_frag.h ../../include
|
|
|
|
%.o : %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|