blob: 3ac993c12f1ed838da6f9d80b731d45c06c2fd0a (
plain) (
blame)
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
|
.PHONY: clean, mrproper
CC = gcc
CXX = g++
LD = gcc
LDFLAGS = -lstdc++
CFLAGS =
CXXFLAGS =
OutFile = makeinitrd
Objects = main.o
all: $(OutFile)
rebuild: mrproper all
$(OutFile): $(Objects)
$(LD) -o $(OutFile) $(LDFLAGS) $^
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)
%.o: %.cpp
$(CXX) -c $< -o $@ $(CXXFLAGS)
clean:
rm -rf *.o
mrproper: clean
rm -rf $(OutFile)
|