diff options
author | joshua stein <jcs@jcs.org> | 2019-12-18 17:35:46 -0600 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-20 20:20:54 +0100 |
commit | ac25438d54252d70de0002e4cca04ac258967c47 (patch) | |
tree | 61b97be561fbb395b8aa3f84135ba7400dfb38e5 /Demos/WidgetGallery | |
parent | f4b2b72c8efc0f6d018b199a8cc95091e7cf4c3e (diff) | |
download | serenity-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 'Demos/WidgetGallery')
-rw-r--r-- | Demos/WidgetGallery/Makefile | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/Demos/WidgetGallery/Makefile b/Demos/WidgetGallery/Makefile index 86f7338469..86d18e66e0 100644 --- a/Demos/WidgetGallery/Makefile +++ b/Demos/WidgetGallery/Makefile @@ -1,22 +1,8 @@ -include ../../Makefile.common - OBJS = \ main.o -APP = WidgetGallery - -DEFINES += -DUSERLAND - -all: $(APP) +PROGRAM = WidgetGallery -$(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -ldraw -lipc -lcore -lc - -.cpp.o: - @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< - --include $(OBJS:%.o=%.d) - -clean: - @echo "CLEAN"; rm -f $(APP) $(OBJS) *.d +LDFLAGS = -lgui -ldraw -lipc -lcore -lc +include ../../Makefile.common |