summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-04-25 21:27:46 +0930
committerDaniel Jones <admin@danieljon.es>2020-04-25 21:27:46 +0930
commit2bb738d1f4b8a8c6041bfcc266601cffedc386d5 (patch)
tree734f5bdd47265f13148db689ac19ae351f10936a /makefile
parentf1b12b8ebb2844160ab990eb0133f9c35752e649 (diff)
downloadcsweeper-2bb738d1f4b8a8c6041bfcc266601cffedc386d5.tar.gz
csweeper-2bb738d1f4b8a8c6041bfcc266601cffedc386d5.zip
added ncurses minesweeper, changed readme and makefile
Diffstat (limited to 'makefile')
-rw-r--r--makefile30
1 files changed, 7 insertions, 23 deletions
diff --git a/makefile b/makefile
index cf00d22..609f4b2 100644
--- a/makefile
+++ b/makefile
@@ -1,25 +1,9 @@
-TARGET = csweeper
-LIBS =
-CC = gcc
-CFLAGS = -g -Wall -Wextra -std=c99
-
-.PHONY: default all clean
-
-default: $(TARGET)
-all: default
-
-OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
-HEADERS = $(wildcard *.h)
-
-%.o: %.c $(HEADERS)
- $(CC) $(CFLAGS) -c $< -o $@
-
-.PRECIOUS: $(TARGET) $(OBJECTS)
-
-$(TARGET): $(OBJECTS)
- $(CC) $(OBJECTS) -Wall $(LIBS) -o $@
+all: csweeper ncsweeper
+csweeper: csweeper.c
+ cc -g -Wall -Wextra -std=c99 -o csweeper csweeper.c
+ncsweeper: ncsweeper.c
+ cc -g -Wall -Wextra -std=c99 -lncurses -o ncsweeper ncsweeper.c
clean:
- -rm -f *.o
- -rm -f $(TARGET)
-
+ @rm -f csweeper ncsweeper
+ @rm -f *.o