Skip to content

Instantly share code, notes, and snippets.

@Razzile
Created September 11, 2016 19:02
Show Gist options
  • Save Razzile/63016fc39eac1bf1f665f58c20c9eb3d to your computer and use it in GitHub Desktop.
Save Razzile/63016fc39eac1bf1f665f58c20c9eb3d to your computer and use it in GitHub Desktop.

Revisions

  1. Razzile created this gist Sep 11, 2016.
    13 changes: 13 additions & 0 deletions ghetto Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    export TARGET = native:clang:latest

    findfiles = $(foreach ext, c cpp m mm x xm xi xmi, $(wildcard $(1)/*.$(ext)))

    include $(THEOS)/makefiles/common.mk

    TOOL_NAME = ghetto_hook
    ghetto_hook_FILES = $(call findfiles,src)

    include $(THEOS_MAKE_PATH)/tool.mk

    test: all
    @$(or $(THEOS_OBJ_DIR),./)/$(TOOL_NAME)