forked from graetz23/sharpWave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 857 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Makefile C#
#
# Christian
# graetz23@gmail.com
# adapted 24.11.2019
# updated 14.03.2020
#
MAIN_FILE = SharpWave
# change this to the depth of the project folders
# if needed, add a preffix for a common project folder
CSHARP_SOURCE_FILES = $(wildcard */*/*.cs */*.cs *.cs)
# add needed flags to the compiler
# CSHARP_FLAGS = -optimize+ -w:1 -out:$(EXECUTABLE)
CSHARP_FLAGS = -w:1 -out:$(EXECUTABLE)
# change to the environment compiler
CSHARP_COMPILER = mcs
# if needed, change the executable file
EXECUTABLE = $(MAIN_FILE).exe
# if needed, change the remove command according to your system
RM_CMD = -rm -f $(EXECUTABLE)
all: $(EXECUTABLE)
$(EXECUTABLE): $(CSHARP_SOURCE_FILES)
@ $(CSHARP_COMPILER) $(CSHARP_SOURCE_FILES) $(CSHARP_FLAGS)
@ echo compiling...
run: all
./$(EXECUTABLE)
clean:
@ $(RM_CMD)
remake:
@ $(MAKE) clean
@ $(MAKE)