{"id":289,"date":"2012-01-18T13:05:02","date_gmt":"2012-01-18T13:05:02","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=289"},"modified":"2012-01-18T13:09:57","modified_gmt":"2012-01-18T13:09:57","slug":"rekursives-make-mit-getrenntem-object-verzeichnis","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=289","title":{"rendered":"Rekursives make mit getrenntem Object-Verzeichnis"},"content":{"rendered":"<pre class=\"brush: plain; collapse: true; light: false; title: Makefile; toolbar: true; notranslate\" title=\"Makefile\">\r\nTOPLEVEL = .\r\nSUBDIRS = \\\r\n    obj\r\n\r\nall : all_sub Aufgabe9\r\n\r\ninclude $(TOPLEVEL)\/Makefile.inc\r\n\r\nSTATIC_LIBRARY = obj\/lib.a \\\r\n                 obj\/planet\/lib.a\r\n\r\nAufgabe9 : $(STATIC_LIBRARY)\r\n\t$(CC) -o $@ obj\/main.o $(STATIC_LIBRARY) $(LDFLAGS)\r\n<\/pre>\n<pre class=\"brush: plain; collapse: true; light: false; title: Makefile.inc; toolbar: true; notranslate\" title=\"Makefile.inc\">\r\nCC       = g++\r\nAR       = ar\r\nCFLAGS   = `sdl-config --cflags` -I\/usr\/glew\/include -I$(TOPLEVEL)\/include -D_REENTRANT -Wall -std=gnu++0x\r\nLDFLAGS  = `sdl-config --libs` -L\/usr\/glew\/lib -lopengl32 -lglu32 -lglew32 -lSDL_ttf\r\nOBJECT   = $(SOURCES:%.cxx=%.o)\r\n\r\n# CFLAGS  = -IC:\\MinGW\\msys\\1.0\\libsdl\\include\\SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -I$(TOPLEVEL)\/include -D_REENTRANT -Wall\r\n# LDFLAGS = -LC:\\MinGW\\msys\\1.0\\libsdl\\lib -lmingw32 -lSDLmain -lSDL -mwindows -lopengl32 -lglu32 -lSDL_ttf\r\n\r\nall_sub:\r\n\tif test &quot;$(SUBDIRS)&quot; != &quot;&quot;; then \\\r\n\t\tfor subdir in $(SUBDIRS); do \\\r\n\t\t\t(cd $$subdir; make all); \\\r\n\t\tdone; \\\r\n\tfi;\r\n\r\nclean: clean_sub\r\n\trm -f *.o *.a $(CLEANFILES)\r\n\r\nclean_sub:\r\n\tif test &quot;$(SUBDIRS)&quot; != &quot;&quot;; then \\\r\n\t\tfor subdir in $(SUBDIRS); do \\\r\n\t\t\t(cd $$subdir; make clean); \\\r\n\t\tdone; \\\r\n\tfi;\r\n\r\n$(LIBRARY): $(OBJECT)\r\n\t$(AR) rcu $(LIBRARY) $(OBJECT)\r\n#\t$(AR) rcs $(LIBRARY) $(OBJECT)\r\n\r\n%.o: $(TOPLEVEL)\/$(CURRENT)\/%.cxx\r\n\t$(CC) -c $(CFLAGS) $&lt;\r\n\r\n.SILENT: all_sub clean_sub\r\n<\/pre>\n<pre class=\"brush: plain; collapse: true; light: false; title: obj\/Makefile; toolbar: true; notranslate\" title=\"obj\/Makefile\">\r\nCURRENT  = src\r\nTOPLEVEL = ..\r\nLIBRARY  = lib.a\r\n\r\nSUBDIRS = \\\r\n    planet\r\n\r\nSOURCES = \\\r\n\tmain.cxx \\\r\n\tGLSL.cxx \\\r\n\ttextfile.cxx \\\r\n\tVector.cxx \\\r\n\tMatrix.cxx \\\r\n\tKeyboard.cxx \\\r\n\tSettings.cxx \\\r\n\tGame.cxx \\\r\n\tCamera.cxx \\\r\n\tLight.cxx \\\r\n\tTexture.cxx \\\r\n\tTextureFactory.cxx \\\r\n\tWorld.cxx \\\r\n\ttext.cxx \\\r\n\tDebug.cxx \\\r\n\t3ds.cxx \\\r\n\tShip.cxx \\\r\n\tShot.cxx \\\r\n\tBillboard.cxx \\\r\n\tExplosion.cxx \\\r\n\tDisplayList.cxx\r\n\r\ninclude $(TOPLEVEL)\/Makefile.inc\r\n\r\nall: all_sub $(LIBRARY)\r\n<\/pre>\n<pre class=\"brush: plain; collapse: true; light: false; title: obj\/planet\/Makefile; toolbar: true; notranslate\" title=\"obj\/planet\/Makefile\">\r\nCURRENT  = src\/planet\r\nTOPLEVEL = ..\/..\r\nLIBRARY  = lib.a\r\n\r\nSUBDIRS = \r\n\r\nSOURCES = \\\r\n\tPlanet.cxx \\\r\n\tRing.cxx \\\r\n\tSun.cxx \\\r\n\tEarth.cxx \\\r\n\tEarthMoon.cxx \\\r\n\tJupiter.cxx \\\r\n\tMars.cxx \\\r\n\tMercury.cxx \\\r\n\tNeptun.cxx \\\r\n\tPluto.cxx \\\r\n\tSaturn.cxx \\\r\n\tSaturnring.cxx \\\r\n\tUranus.cxx \\\r\n\tVenus.cxx\r\n\r\ninclude $(TOPLEVEL)\/Makefile.inc\r\n\r\nall: all_sub $(LIBRARY)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>TOPLEVEL = . SUBDIRS = \\ obj all : all_sub Aufgabe9 include $(TOPLEVEL)\/Makefile.inc STATIC_LIBRARY = obj\/lib.a \\ obj\/planet\/lib.a Aufgabe9 : $(STATIC_LIBRARY) $(CC) -o $@ obj\/main.o $(STATIC_LIBRARY) $(LDFLAGS) CC = g++ AR = ar CFLAGS = `sdl-config &#8211;cflags` -I\/usr\/glew\/include -I$(TOPLEVEL)\/include -D_REENTRANT -Wall -std=gnu++0x LDFLAGS = `sdl-config &#8211;libs` -L\/usr\/glew\/lib -lopengl32 -lglu32 -lglew32 -lSDL_ttf OBJECT = $(SOURCES:%.cxx=%.o) # [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,10],"tags":[],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-mingw","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=289"}],"version-history":[{"count":4,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/289\/revisions\/293"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}