toaruos/userspace/Makefile

19 lines
487 B
Makefile
Raw Normal View History

2011-04-30 04:54:07 +04:00
CC = i686-pc-toaru-gcc
CFLAGS = -march=core2 -std=c99 -O3 -m32 -Wa,--32
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-10-28 10:09:55 +04:00
clean:
-rm -f ${EXECUTABLES}
2011-04-30 04:54:07 +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
../hdd/bin/%: %.c
2011-12-12 14:11:07 +04:00
${CC} ${CFLAGS} -s -o $@ $<