sim

the sim text editor
git clone git://ssnf.xyz/sim
Log | Files | Refs | README

Makefile (293B)


      1 CC     = cc
      2 CFLAGS = -Os -ansi -Wall -Wpedantic
      3 #CFLAGS = -O0 -g -ansi -Wall -Wpedantic
      4 SRC    = sim.c posix.c
      5 OBJ    = ${SRC:.c=.o}
      6 
      7 all: sim
      8 
      9 config.h:
     10 	cp config.def.h $@
     11 
     12 ${OBJ}: config.h sim.h
     13 
     14 sim: ${OBJ}
     15 	${CC} ${OBJ} -o $@
     16 
     17 %.o: %.c
     18 	${CC} ${CFLAGS} -c $< -o $@
     19 
     20 clean:
     21 	rm -f sim *.o