diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-15 12:14:23 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-15 12:14:23 +0100 |
commit | aa19735c5aaf645236bde7b2f6d0ee2da0b60078 (patch) | |
tree | e641fd725171b1966eb5d0ea7a76535e09b6888c /Applications/IRCClient/Makefile | |
parent | f87dec1cbf55f74146a59b83b99ad6c703810699 (diff) | |
download | serenity-aa19735c5aaf645236bde7b2f6d0ee2da0b60078.zip |
IRCClient: Start working on a simple graphical IRC client.
This will be a nice way to exercise both LibGUI and the TCP/IP support. :^)
Diffstat (limited to 'Applications/IRCClient/Makefile')
-rw-r--r-- | Applications/IRCClient/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Applications/IRCClient/Makefile b/Applications/IRCClient/Makefile new file mode 100644 index 0000000000..bcf149a6ca --- /dev/null +++ b/Applications/IRCClient/Makefile @@ -0,0 +1,38 @@ +OBJS = \ + IRCClient.o \ + IRCChannel.o \ + IRCQuery.o \ + IRCLogBuffer.o \ + IRCAppWindow.o \ + IRCSubWindow.o \ + main.o + +APP = IRCClient + +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++ +LD = i686-pc-serenity-ld +AR = i686-pc-serenity-ar +LDFLAGS = -L../../LibC -L../../LibGUI + +all: $(APP) + +$(APP): $(OBJS) + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lc + +.cpp.o: + @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< + +-include $(OBJS:%.o=%.d) + +clean: + @echo "CLEAN"; rm -f $(APPS) $(OBJS) *.d + |