2011-04-30 04:54:07 +04:00
|
|
|
CC = i686-pc-toaru-gcc
|
2011-06-09 07:27:27 +04:00
|
|
|
CFLAGS = -march=core2 -std=c99 -O3 -m32 -Wa,--32
|
2011-11-19 00:45:19 +04:00
|
|
|
EXECUTABLES = $(patsubst %.c,../hdd/bin/%,$(wildcard *.c))
|
2011-10-28 10:09:55 +04:00
|
|
|
ERRORS = 2>>/tmp/.build-errors || util/mk-error
|
2011-04-30 04:54:07 +04:00
|
|
|
|
|
|
|
|
2011-10-28 10:09:55 +04:00
|
|
|
.PHONY: all clean
|
2011-04-30 04:54:07 +04:00
|
|
|
|
2011-10-28 10:09:55 +04:00
|
|
|
all: ${EXECUTABLES}
|
2011-04-30 12:40:36 +04:00
|
|
|
|
2011-10-28 10:09:55 +04:00
|
|
|
clean:
|
|
|
|
-rm -f ${EXECUTABLES}
|
2011-04-30 04:54:07 +04:00
|
|
|
|
2011-12-16 23:16:20 +04:00
|
|
|
../hdd/bin/freetype_test: freetype_test.c
|
|
|
|
${CC} ${CFLAGS} -s -I ../util/toaru-toolchain/i686-pc-toaru/include/freetype2/ -o $@ $< ../util/toaru-toolchain/i686-pc-toaru/lib/libfreetype.a
|
|
|
|
|
2011-11-19 00:45:19 +04:00
|
|
|
../hdd/bin/%: %.c
|
2011-12-12 14:11:07 +04:00
|
|
|
${CC} ${CFLAGS} -s -o $@ $<
|