ladybird/Userland/Makefile
2019-04-21 04:09:39 +02:00

28 lines
413 B
Makefile

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)