summaryrefslogtreecommitdiff
path: root/Libraries/LibDraw
diff options
context:
space:
mode:
authorjoshua stein <jcs@jcs.org>2019-12-18 17:35:46 -0600
committerAndreas Kling <awesomekling@gmail.com>2019-12-20 20:20:54 +0100
commitac25438d54252d70de0002e4cca04ac258967c47 (patch)
tree61b97be561fbb395b8aa3f84135ba7400dfb38e5 /Libraries/LibDraw
parentf4b2b72c8efc0f6d018b199a8cc95091e7cf4c3e (diff)
downloadserenity-ac25438d54252d70de0002e4cca04ac258967c47.zip
Build: clean up build system, use one shared Makefile
Allow everything to be built from the top level directory with just 'make', cleaned with 'make clean', and installed with 'make install'. Also support these in any particular subdirectory. Specifying 'make VERBOSE=1' will print each ld/g++/etc. command as it runs. Kernel and early host tools (IPCCompiler, etc.) are built as object.host.o so that they don't conflict with other things built with the cross-compiler.
Diffstat (limited to 'Libraries/LibDraw')
-rw-r--r--Libraries/LibDraw/Makefile19
-rwxr-xr-xLibraries/LibDraw/install.sh8
2 files changed, 5 insertions, 22 deletions
diff --git a/Libraries/LibDraw/Makefile b/Libraries/LibDraw/Makefile
index dc2952ba92..8923d22f9c 100644
--- a/Libraries/LibDraw/Makefile
+++ b/Libraries/LibDraw/Makefile
@@ -1,5 +1,3 @@
-include ../../Makefile.common
-
OBJS = \
CharacterBitmap.o \
Color.o \
@@ -15,17 +13,10 @@ OBJS = \
Emoji.o
LIBRARY = libdraw.a
-DEFINES += -DUSERLAND
-
-all: $(LIBRARY)
-$(LIBRARY): $(OBJS)
- @echo "LIB $@"; $(AR) rcs $@ $(OBJS) $(LIBS)
+install:
+ mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/LibDraw/
+ cp *.h $(SERENITY_BASE_DIR)/Root/usr/include/LibDraw/
+ cp $(LIBRARY) $(SERENITY_BASE_DIR)/Root/usr/lib/
-.cpp.o:
- @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
-
--include $(OBJS:%.o=%.d)
-
-clean:
- @echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
+include ../../Makefile.common
diff --git a/Libraries/LibDraw/install.sh b/Libraries/LibDraw/install.sh
deleted file mode 100755
index 76354671fe..0000000000
--- a/Libraries/LibDraw/install.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-set -e
-SERENITY_ROOT=../../
-
-mkdir -p $SERENITY_ROOT/Root/usr/include/LibDraw/
-cp ./*.h $SERENITY_ROOT/Root/usr/include/LibDraw/
-cp libdraw.a $SERENITY_ROOT/Root/usr/lib/