/make/edam-mk

To get this branch, use:
bzr branch http://bzr.ed.am/make/edam-mk
1 by edam
initial makefile
1
#
2
# Target binary
3
#
2 by edam
switched compiler to g++
4
TARGET		= simplecrypt
1 by edam
initial makefile
5
6
#
7
# All source files
8
#
2 by edam
switched compiler to g++
9
CC_SRCS		= simplecrypt.cc
10
C_SRCS		= 
11
S_SRCS		= 
1 by edam
initial makefile
12
13
#
14
# Build flags
15
#
16
#CFLAGS=-g
2 by edam
switched compiler to g++
17
#LDFLAGS=
1 by edam
initial makefile
18
19
20
#---------------------------------------------------------------------------
2 by edam
switched compiler to g++
21
# Edam's makefile r1.02
1 by edam
initial makefile
22
23
# More variables...
24
DEPFILE		= Depends
2 by edam
switched compiler to g++
25
SRCS		= $(C_SRCS) $(CC_SRCS) $(S_SRCS)
1 by edam
initial makefile
26
OBJS		= $(addsuffix .o,$(basename $(SRCS)))
27
28
# Main rule...
29
$(TARGET): $(OBJS)
2 by edam
switched compiler to g++
30
	g++ -o $(TARGET) $(OBJS) $(LDFLAGS)
1 by edam
initial makefile
31
32
#---------------------------------------------------------------------------
33
34
.PHONY:	all clean depend dep
35
36
all:	clean depend $(TARGET)
37
38
clean:
39
	rm -f core $(DEPFILE) $(OBJS)
40
	rm -f *~
41
42
depend dep:
43
	makedepend -f- -- $(CFLAGS) -- $(SRCS) > $(DEPFILE)
44
45
#---------------------------------------------------------------------------
46
#include $(DEPFILE)