all : mesh heart had #ClassProcessor CFLAGS:=$(CFLAGS) -g -Os -DRASTERIZER -flto -I. CXXFLAGS:=$(CFLAGS) LDFLAGS:=-g -flto -Wl,--relax -Wa,-a,-ad LDONE:=-g -fwhole-program -Wl,--relax -Wa,-a,-ad -Wl,--gc-sections -ffunction-sections -fdata-sections -T./elf_x86_64_mod.x OBJS:=rawdraw.o DrawFunctions.o XDriver.o os_generic.o 3d.o oscope.o LDLIBS:=-lX11 -lm -lpthread -lXinerama -lXext -lusb # Rasterizer.o #mesh : $(OBJS) # gcc -o $@ $^ -lX11 -lm -lpthread -lXinerama -lXext $(LDFLAGS) mesh.tiny : rawdraw.c DrawFunctions.c XDriver.c os_generic.c 3d.c oscope.c gcc -o mesh.tiny $^ $(LDLIBS) $(LDONE) $(CFLAGS) > mesh.lst objdump mesh.tiny -t > mesh.map strip -R .eh_frame -R .eh_frame_hdr -x -s -R .comment -R .gnu.version mesh.tiny -o $@.tiny.stripped mesh : rawdraw.o DrawFunctions.o XDriver.o os_generic.o 3d.o oscope.o lsmdriver/lsm303.o lsmdriver/clienti2c.o gcc -o $@ $^ $(LDLIBS) heart : heart.o DrawFunctions.o XDriver.o os_generic.o 3d.o oscope.o lsmdriver/lsm303.o lsmdriver/clienti2c.o gcc -o $@ $^ $(LDLIBS) had : had.o DrawFunctions.o XDriver.o os_generic.o oscope.o gcc -o $@ $^ $(LDLIBS) clean : rm -rf *.o *~ mesh