2019-02-28 00:43:50 +00:00
|
|
|
OBJS = \
|
2019-03-23 00:42:49 +00:00
|
|
|
ProcessModel.o \
|
2019-02-28 09:57:09 +00:00
|
|
|
ProcessTableView.o \
|
2019-03-10 11:13:22 +00:00
|
|
|
MemoryStatsWidget.o \
|
2019-02-28 00:43:50 +00:00
|
|
|
main.o
|
|
|
|
|
|
|
|
APP = ProcessManager
|
|
|
|
|
|
|
|
STANDARD_FLAGS = -std=c++17
|
|
|
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
|
|
|
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
|
|
|
|
OPTIMIZATION_FLAGS = -Os
|
|
|
|
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
|
|
|
|
|
|
|
DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND
|
|
|
|
|
|
|
|
CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
|
|
|
CXX = i686-pc-serenity-g++
|
2019-03-27 11:48:21 +00:00
|
|
|
LD = i686-pc-serenity-g++
|
2019-04-10 14:14:44 +00:00
|
|
|
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
|
2019-02-28 00:43:50 +00:00
|
|
|
|
|
|
|
all: $(APP)
|
|
|
|
|
|
|
|
$(APP): $(OBJS)
|
2019-04-10 14:14:44 +00:00
|
|
|
$(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc
|
2019-02-28 00:43:50 +00:00
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
-include $(OBJS:%.o=%.d)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "CLEAN"; rm -f $(APPS) $(OBJS) *.d
|
|
|
|
|