Commit d3312bf6 authored by robertdavidgraham's avatar robertdavidgraham
Browse files

create bin and tmp directories in Makefile'

parent 5388b4cc
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -6,16 +6,22 @@ CC = gcc
CFLAGS = -g $(INCLUDES) $(DEFINES) -Wall -Wstrict-aliasing=2 -O3 -rdynamic
.SUFFIXES: .c .cpp

tmp/%.o: src/%.c
tmp/%.o: src/%.c tmp
	$(CC) $(CFLAGS) -c $< -o $@

SRC = $(wildcard src/*.c)
OBJ = $(addprefix tmp/, $(notdir $(addsuffix .o, $(basename $(SRC))))) 


bin/masscan: $(OBJ)
bin/masscan: $(OBJ) bin
	$(CC) $(CFLAGS) -o $@ $(OBJ) -lm $(LIBS) -lstdc++

bin:
	mkdir bin

tmp:
	mkdir tmp

depend:
	makedepend $(CFLAGS) -Y $(SRC)