aboutsummaryrefslogtreecommitdiff
path: root/crypter/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'crypter/Makefile')
-rw-r--r--crypter/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypter/Makefile b/crypter/Makefile
index 0508caa..5b1b5d6 100644
--- a/crypter/Makefile
+++ b/crypter/Makefile
@@ -3,6 +3,7 @@ ASM := nasm
CC := gcc
LD := ld
XXD := xxd
+ASMFLAGS = -g
CFLAGS = -Wall -fpic -Os
LDFLAGS =
SUBDIR ?= .
@@ -14,12 +15,13 @@ SCC := $(shell if [ -x $(SCDIR)/sc-test ]; then echo "yes"; else echo "no"; fi)
all: $(TARGETS)
%.o : %.asm
- $(ASM) -o $@ $<
+ $(ASM) $(ASMFLAGS) -o $@ $<
%.o : %.c
ifneq ($(SCC),yes)
$(error Please run 'make' in the main directory)
endif
+ @echo "generating header $(patsubst %.o,%.h,$@) for target $<"
-$(shell $(SCDIR)/sc-test -p $(SUBDIR)/`cat "$<" | sed -n 's/.*#DECODER=//p'` | sed 's/shellcode/decoder/' > $(patsubst %.o,%.h,$@))
-$(shell $(SCDIR)/sc-test -p $(SUBDIR)/`cat "$<" | sed -n 's/.*#SHELLCODE=//p'` >> $(patsubst %.o,%.h,$@))
$(CC) $(CFLAGS) -D_USE_CFG -o $(patsubst %.c,%,$<) $<