2019-04-21 02:09:39 +00:00
|
|
|
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=}
|
2018-10-22 12:13:17 +00:00
|
|
|
|
2019-04-21 02:09:39 +00:00
|
|
|
DEFINES += -DUSERLAND
|
2018-10-22 12:13:17 +00:00
|
|
|
|
2019-04-14 18:15:29 +00:00
|
|
|
.PHONY: all list clean
|
|
|
|
|
2018-10-22 12:13:17 +00:00
|
|
|
all: $(OBJS) $(APPS)
|
2018-10-22 12:06:22 +00:00
|
|
|
|
2019-04-14 17:58:25 +00:00
|
|
|
list:
|
|
|
|
@echo $(APPS)
|
2019-01-18 14:35:38 +00:00
|
|
|
|
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-07 21:35:26 +00:00
|
|
|
|
2019-04-14 17:58:25 +00:00
|
|
|
$(APPS) : % : %.o $(OBJS)
|
2019-04-21 02:09:39 +00:00
|
|
|
@echo "LD $@"
|
2019-08-25 15:55:56 +00:00
|
|
|
@$(LD) -o $@ $(LDFLAGS) $< -lc -lgui -ldraw -laudio -lipc -lthread -lcore -lpcidb
|
2019-04-14 13:19:45 +00:00
|
|
|
|
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
|
|
|
|
2019-02-02 03:41:59 +00:00
|
|
|
-include $(OBJS:%.o=%.d)
|