mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-18 15:14:10 +01:00

- try to share some bits between different makefiles, make modifying global compiler flags not such a huge pain. - directly specify we should be using the gold rather than bpf linker - make compiler output largely quiet except where we care - allow warnings to actually be visible - don't delete downloaded tarballs with --really-clean - add missing dependencies between libraries (--no-add-needed/--no-copy-dt-needed-entries causes lots of trouble) - update readme to show what to install to build I made minimal changes to the loader makefile - it breaks easily. -Os prevents if from being able to load libc, for instance
17 lines
325 B
Makefile
17 lines
325 B
Makefile
ROOT = ../..
|
|
|
|
include ../../Makefile.common
|
|
|
|
VPATH = ../../source/extensions/networkpug
|
|
|
|
CFLAGS += -I../../source/extensions/networkpug
|
|
|
|
objects = networkpug.o
|
|
|
|
ext_server_networkpug.so: $(objects)
|
|
@echo [LD] $@
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -shared $(objects) -lc -lsupport -lmetsrv_main -lpcap -o $@
|
|
|
|
clean:
|
|
rm -f *.o *.so
|