home *** CD-ROM | disk | FTP | other *** search
/ DEFCON 15 / DefCon15.bin / Speakers / Jennings / Extras / incognito / makefile < prev    next >
Makefile  |  2007-03-12  |  1KB  |  31 lines

  1. # Shared libraries to link against
  2. LIBS = kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib psapi.lib mpr.lib netapi32.lib Advapi32.lib
  3.  
  4. # Source files shared between incognito.exe and incognito_service.exe
  5. SHARED_SOURCES = child_process.c handle_arguments.c hash_stealer.c list_tokens.c process_execution.c remote_connection.c token_info.c user_management.c XGetopt.c
  6.  
  7. CFLAGS = /GS /nologo /W3 /WX -c
  8. LFLAGS = /SAFESEH /nologo
  9.  
  10. OBJECTS = $(SHARED_SOURCES:.c=.obj)
  11.  
  12.  
  13. all: incognito.exe incognito_service.exe
  14.  
  15. incognito.exe: $(OBJECTS) incognito.obj
  16.     link $(LFLAGS) /OUT:$@ $(OBJECTS) incognito.obj $(LIBS)
  17.  
  18. incognito_service.exe: $(OBJECTS) incognito_service.obj
  19.     link $(LFLAGS) /OUT:$@ $(OBJECTS) incognito_service.obj $(LIBS)
  20.  
  21. .o: $(SHARED_SOURCES) 
  22.     cl $(CFLAGS) $@ 
  23.  
  24. incognito.obj: incognito.c
  25.     cl $(CFLAGS) incognito.c
  26.  
  27. incognito_service.obj: incognito_service.c
  28.     cl $(CFLAGS) incognito_service.c
  29.  
  30. clean:
  31.     del *.obj *.exe