annotate win32/makefile @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 # Makefile for the Windows API project
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 # Uses GNU Make-specific extensions
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 DC := dmd.exe
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6 DFLAGS := -inline -O -release -w
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 #DFLAGS := -debug -gc -unittest -w
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 DFLAGS += -version=Unicode -version=WindowsVista
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11 ########################################
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 SUBDIRS := directx
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15 EXCLUSIONS := winsock.d
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 ########################################
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 SOURCES := $(wildcard *.d $(addsuffix /*.d, $(SUBDIRS)))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20 SOURCES := $(filter-out $(EXCLUSIONS), $(SOURCES))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22 ########################################
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24 win32.lib : $(SOURCES)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25 $(DC) $^ -lib -of$@ $(DFLAGS)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27 clean :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28 -del win32.lib
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30 .PHONY : clean