CC=clang # todo: Only link to libm on debug. CFLAGS=-lX11 -Wall -std=c99 -g3 -O3 -msse2 -lm 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 DOS = maindos.c Display/dos.c %.o: %.c $(DEPS) $(CC) -c -o $@ $< $(CFLAGS) linux: $(LINUX) $(OBJ) $(CC) -o player $^ $(CFLAGS) dos: $(DOS) $(DEPS) wcl386 -bt=dos4g -ox -l=dos4g $(DOS) clean: rm -r *.o ../*.o