From c2cef08d501b214ea34c2e0b7d5bb03c8d3b9678 Mon Sep 17 00:00:00 2001 From: edmccard Date: Wed, 14 Mar 2012 18:12:15 -0400 Subject: [PATCH] Stop using gcc for linking --- src/Makefile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/Makefile b/src/Makefile index 1d790bd..56c2e91 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,23 +1,19 @@ -DMD_OPTS = -c -version=CycleAccuracy -op -Jdata -I$(GTKD)/src -I$(GTKD)/srcgl \ - -I$(DERELICT)/import +COMPILE_OPTS = -c -version=CycleAccuracy -op -Jdata -I$(GTKD)/src \ + -I$(GTKD)/srcgl -I$(DERELICT)/import -GCC_OPTS = -lpthread -lm -lGL -ldl -lX11 -lrt \ - -L$(GTKD) -lgtkd -lgtkdgl \ - -L$(DERELICT)/lib -lDerelictSDL -lDerelictUtil \ - -lphobos2 -ldruntime +LINK_OPTS = -L-lpthread -L-lGL -L-ldl -L-lX11 \ + -L-L$(GTKD) -L-lgtkd -L-lgtkdgl \ + -L-L$(DERELICT)/lib -L-lDerelictSDL -L-lDerelictUtil \ ALL_SRC = $(shell find -name "*.d") ALL_OBJS = $(ALL_SRC:%.d=%.o) all: ${ALL_OBJS} - gcc ${ALL_OBJS} -o twoapple ${GCC_OPTS} + dmd ${ALL_OBJS} -oftwoapple ${LINK_OPTS} clean: rm -rf twoapple ${ALL_OBJS} -twoapple.o: twoapple.d - dmd $(DFLAGS) -inline -O $(DMD_OPTS) $< - %.o: %.d - dmd $(DFLAGS) -inline -release -O $(DMD_OPTS) $< + dmd $(DFLAGS) -inline -release -O $(COMPILE_OPTS) $<