diff --git a/netsl/.gitignore b/netsl/.gitignore index 078cbd0..1382995 100644 --- a/netsl/.gitignore +++ b/netsl/.gitignore @@ -5,3 +5,4 @@ test *.o *.swp a.out +netsl diff --git a/netsl/Makefile b/netsl/Makefile index 5cda73f..461a063 100644 --- a/netsl/Makefile +++ b/netsl/Makefile @@ -1,9 +1,9 @@ -CFLAGS=-g -Wall -Wextra -std=gnu99 +CFLAGS=-g -Wall -Wextra -std=gnu99 BIN=bin SRC=src LIBS=-lncurses -TARGET=$(BIN)/netsl +TARGET=netsl OBJECTS=$(BIN)/main.o $(BIN)/msg.o $(BIN)/net.o $(BIN)/display.o $(BIN)/image.o all: $(BIN) $(TARGET) @@ -14,11 +14,9 @@ $(BIN): $(TARGET): $(OBJECTS) gcc $^ $(LIBS) -o $(TARGET) -# mkdir -pv $(BIN) - $(BIN)/%.o: $(SRC)/%.c $(SRC)/%.h $(CC) $(CFLAGS) -o $@ -c $< clean: rm -rf $(BIN) - + rm $(TARGET)