Created
March 28, 2012 00:15
-
-
Save wolfiestyle/2221824 to your computer and use it in GitHub Desktop.
basic makefile for D language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# basic makefile for D language - made by darkstalker | |
DCC = dmd | |
DFLAGS = -w | |
LIBS = | |
SRC = $(wildcard *.d) | |
OBJ = $(SRC:.d=.o) | |
OUT = $(shell basename `pwd`) | |
.PHONY: all debug release profile clean | |
all: debug | |
debug: DFLAGS += -g -debug | |
release: DFLAGS += -O -release -inline -noboundscheck | |
profile: DFLAGS += -g -O -profile | |
debug release profile: $(OUT) | |
$(OUT): $(OBJ) | |
$(DCC) $(DFLAGS) -of$@ $(OBJ) $(LIBS) | |
clean: | |
rm -f *~ $(OBJ) $(OUT) trace.{def,log} | |
%.o: %.d | |
$(DCC) $(DFLAGS) -c $< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see absolutely no reason why he would bother to license a makefile example.