Skip to content

Instantly share code, notes, and snippets.

@wolfiestyle
Created March 28, 2012 00:15
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save wolfiestyle/2221824 to your computer and use it in GitHub Desktop.
Save wolfiestyle/2221824 to your computer and use it in GitHub Desktop.
basic makefile for D language
# 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 $<
@agordon
Copy link

agordon commented Feb 24, 2014

Hello,

Quick question: do you consider this makefile to be under a free license? i.e., can I use (and modify) it in a GPLv3+ project?

Thanks,
-gordon

@mkaito
Copy link

mkaito commented Mar 5, 2014

I see absolutely no reason why he would bother to license a makefile example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment