Blame view

Makefile 304 Bytes
ae25085d   henyxia   Output function done
1
  CC=gcc
ea1218f1   henyxia   UI finished
2
  CC_FLAGS=-c -Wall -Werror -std=c99 -g
ae25085d   henyxia   Output function done
3
4
  CC_LIBS=
  INCLUDES=
e583b6a9   henyxia   First version
5
  
ea1218f1   henyxia   UI finished
6
  SOURCES=main.c printx.c ui.c
e583b6a9   henyxia   First version
7
  OBJECTS=$(SOURCES:.c=.o)
e583b6a9   henyxia   First version
8
9
10
11
12
13
14
15
  OUTPUT=tweekd
  
  all: $(SOURCES) $(OUTPUT)
  
  $(OUTPUT): $(OBJECTS)
  	$(CC) $(OBJECTS) $(CC_LIBS) -o $@
  
  %.o: %.c
ae25085d   henyxia   Output function done
16
  	$(CC) $(INCLUDES) $(CC_FLAGS) $< -o $@
e583b6a9   henyxia   First version
17
18
19
  
  clear:
  	rm -f $(OUTPUT) $(OBJECTS)