summaryrefslogtreecommitdiff
path: root/Userland/Makefile
blob: 80c84a6af883bb378a81033a93cecb37401afeef (plain)
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
include ../Makefile.common

SRCS = $(wildcard *.cpp)
OBJS = ${SRCS:.cpp=.o}
APPS = ${SRCS:.cpp=}

DEFINES += -DUSERLAND

.PHONY: all list clean

all: $(OBJS) $(APPS)

list:
	@echo $(APPS)

clean:
	@echo "CLEAN"
	@rm -f $(APPS) $(OBJS) *.d

$(APPS) : % : %.o $(OBJS)
	@echo "LD $@"
	@$(LD) -o $@ $(LDFLAGS) $< -lc -lgui -lcore

%.o: %.cpp
	@echo "CXX $<"
	@$(CXX) $(CXXFLAGS) -o $@ -c $<

-include $(OBJS:%.o=%.d)