Blame view

Makefile 287 Bytes
ae25085d   henyxia   Output function done
1
2
3
4
  CC=gcc
  CC_FLAGS=-c -Wall -Werror
  CC_LIBS=
  INCLUDES=
e583b6a9   henyxia   First version
5
  
ae25085d   henyxia   Output function done
6
  SOURCES=main.c printx.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)