web?
This commit is contained in:
+15
-6
@@ -1,20 +1,29 @@
|
||||
CC=clang
|
||||
CC = clang
|
||||
# todo: Only link to libm on debug.
|
||||
CFLAGS=-lX11 -Wall -std=c99 -g3 -O3 -msse2 -lm
|
||||
CFLAGS = -Wall -std=c99 -g3 -O3
|
||||
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 \
|
||||
./Display/display.h
|
||||
OBJ = ../Common/lzw.o ../Common/fix.o ../Common/mat.o
|
||||
LINUX = main.o Display/x11.o ../Common/Timer/unix.o
|
||||
./Display/display.h \
|
||||
./draw.h
|
||||
SRC = ../Common/lzw.c ../Common/fix.c ../Common/mat.c ./draw.c
|
||||
OBJ = ../Common/lzw.o ../Common/fix.o ../Common/mat.o ./draw.o
|
||||
LINUX = ./Main/linux.o ./amalgam.o Display/x11.o ../Common/Timer/unix.o
|
||||
WASM = ./amalgam.c
|
||||
DOS = maindos.c Display/dos.c
|
||||
|
||||
%.o: %.c $(DEPS)
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
linux: $(LINUX) $(OBJ)
|
||||
linux: CFLAGS += -msse2 -lm -lX11
|
||||
linux: $(LINUX) | $(SRC)
|
||||
$(CC) -o player $^ $(CFLAGS)
|
||||
|
||||
# Note: lld package might need to be downloaded.
|
||||
wasm: CFLAGS += --target=wasm32 -nostdlib -Wl,--no-entry
|
||||
wasm:
|
||||
$(CC) -o player.wasm $(WASM) $(CFLAGS)
|
||||
|
||||
dos: $(DOS) $(DEPS)
|
||||
wcl386 -bt=dos4g -ox -l=dos4g $(DOS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user