no libc, start on socket x11
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@ CC = clang
|
||||
CFLAGS = -Wall -std=c99 -g3 -O3 -flto=full
|
||||
DEPS = ../Common/lzw.h ../Common/mat.h ../Common/vec.h ../Common/fix.h ../Common/def.h ../Common/bits.h \
|
||||
../Common/gem.h \
|
||||
../Common/Timer/timer.h \
|
||||
../Common/Timer/time.h \
|
||||
./Display/display.h \
|
||||
./draw.h
|
||||
SRC = ../Common/lzw.c ../Common/fix.c ../Common/mat.c ./draw.c
|
||||
@@ -15,7 +15,7 @@ DOS = maindos.c Display/dos.c
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
# TODO: Make it work with no stdlib.
|
||||
linux: CFLAGS += -msse2 -lm -lX11 # -nostdlib
|
||||
linux: CFLAGS += -msse2 -mbmi2 -nostdlib
|
||||
linux: $(LINUX) | $(SRC)
|
||||
$(CC) -o player $^ $(CFLAGS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user