repl.it
@StanleyBlack/

Particles

C

- (CTRL or CMD) + shift + p - Type "Open Shell" or "osh" and press enter - In the terminal > make > ./main

fork
loading
Files
  • main.c
  • macros.h
  • main-05acefcf.o.tmp
  • main-10f9dc63.o.tmp
  • main-64a854bf.o.tmp
  • main-7b64e888.o.tmp
  • main-8252303a.o.tmp
  • main-8f977a48.o.tmp
  • main-9f2c3139.o.tmp
  • main-a39fccdd.o.tmp
  • main-ba11650e.o.tmp
  • main-be1525aa.o.tmp
  • main-c4834e5a.o.tmp
  • main-cc42177d.o.tmp
  • main-cc6800fc.o.tmp
  • main-db378a07.o.tmp
  • main-f7c3e29d.o.tmp
  • main.o
  • Makefile
  • particles.c
  • particles.h
  • particles.o
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.PHONY: run

run: main
	./main
	
CC = clang
CFLAGS = -Wall -Wextra -g3
LIBS = -lncurses
DEPS = macros.h particles.h
OBJ = main.o particles.o

%.o: %.c $(DEPS)
	$(CC) $(CFLAGS) -c -o [email protected] $<

main: $(OBJ)
	$(CC) $(CFLAGS) -o [email protected] $(LIBS) $^