1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-12-08 23:33:07 +01:00
metasploit-payloads/c/meterpreter/workspace/ext_server_sniffer/Makefile
Brent Cook 0d59fc7447 support building on newer Linux systems and Makefile cleanups
- 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
2015-01-13 16:33:56 -06:00

18 lines
344 B
Makefile

ROOT = ../..
include $(ROOT)/Makefile.common
VPATH += $(ROOT)/source/extensions/sniffer
CFLAGS += -I$(ROOT)/source/extensions/networkpug
CFLAGS += -I.
objects = sniffer.o
ext_server_sniffer.so: $(objects)
@echo [LD] $@
@$(CC) $(CFLAGS) $(LDFLAGS) -shared $(objects) -lpcap -lssl -lc -lsupport -lmetsrv_main -o $@
clean:
rm -f *.o *.so