Преглед на файлове

Remove Makefile and fix the ball example comment

Close #4

Co-authored-by: Seth Speaks <[email protected]>
rexim преди 2 седмици
родител
ревизия
df72fdc96c
променени са 2 файла, в които са добавени 1 реда и са изтрити 19 реда
  1. 0 18
      Makefile
  2. 1 1
      examples/ball.c

+ 0 - 18
Makefile

@@ -1,18 +0,0 @@
-CFLAGS=-Wall -Wextra -pedantic
-
-all: la.c.o la.cxx.o ball
-
-ball: ball.c la.h
-	$(CC) $(CFLAGS) -std=c11 -ggdb -o ball ball.c -lm
-
-la.cxx.o: la.h
-	$(CC) $(CFLAGS) -DLA_IMPLEMENTATION -x c++ -o la.cxx.o -c la.h
-
-la.c.o: la.h
-	$(CC) $(CFLAGS) -std=c99 -DLA_IMPLEMENTATION -x c -o la.c.o -c la.h
-
-la.h: lag
-	./lag > la.h
-
-lag: lag.c
-	$(CC) $(CFLAGS) -std=c11 -ggdb -o lag lag.c

+ 1 - 1
examples/ball.c

@@ -1,6 +1,6 @@
 // This is a small example on how to use la.h
 // This is a small example on how to use la.h
 // Just a simple simulation of a bouncing ball with ASCII Art rendering in the terminal
 // Just a simple simulation of a bouncing ball with ASCII Art rendering in the terminal
-// cc -o ball ball.c && ./ball
+// cc -o ball ball.c -lm && ./ball
 #define _XOPEN_SOURCE 500
 #define _XOPEN_SOURCE 500
 #include <assert.h>
 #include <assert.h>
 #include <stdio.h>
 #include <stdio.h>