diff options
| author | Daniel Jones <admin@danieljon.es> | 2020-04-25 21:27:46 +0930 | 
|---|---|---|
| committer | Daniel Jones <admin@danieljon.es> | 2020-04-25 21:27:46 +0930 | 
| commit | 2bb738d1f4b8a8c6041bfcc266601cffedc386d5 (patch) | |
| tree | 734f5bdd47265f13148db689ac19ae351f10936a /makefile | |
| parent | f1b12b8ebb2844160ab990eb0133f9c35752e649 (diff) | |
| download | csweeper-2bb738d1f4b8a8c6041bfcc266601cffedc386d5.tar.gz csweeper-2bb738d1f4b8a8c6041bfcc266601cffedc386d5.zip | |
added ncurses minesweeper, changed readme and makefile
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 30 | 
1 files changed, 7 insertions, 23 deletions
| @@ -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 | 
