ladybird/Userland/Makefile

29 lines
451 B
Makefile
Raw Normal View History

include ../Makefile.common
2019-04-14 18:15:29 +00:00
SRCS = $(wildcard *.cpp)
2019-04-14 17:58:25 +00:00
OBJS = ${SRCS:.cpp=.o}
APPS = ${SRCS:.cpp=}
DEFINES += -DUSERLAND
2019-04-14 18:15:29 +00:00
.PHONY: all list clean
all: $(OBJS) $(APPS)
2018-10-22 12:06:22 +00:00
2019-04-14 17:58:25 +00:00
list:
@echo $(APPS)
2019-04-14 17:58:25 +00:00
clean:
2019-04-14 18:15:29 +00:00
@echo "CLEAN"
@rm -f $(APPS) $(OBJS) *.d
2019-04-14 17:58:25 +00:00
$(APPS) : % : %.o $(OBJS)
@echo "LD $@"
@$(LD) -o $@ $(LDFLAGS) $< -lc -lgui -ldraw -laudio -lipc -lthread -lcore -lpcidb
2019-04-14 17:58:25 +00:00
%.o: %.cpp
2019-04-14 18:15:29 +00:00
@echo "CXX $<"
2019-04-14 17:58:25 +00:00
@$(CXX) $(CXXFLAGS) -o $@ -c $<
2018-10-22 12:06:22 +00:00
-include $(OBJS:%.o=%.d)