mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-14 20:31:17 +00:00
27 lines
328 B
Makefile
27 lines
328 B
Makefile
all: copy
|
|
|
|
# Compiler options
|
|
#CCOPTS = -g -O3 -Wall -Werror
|
|
CCOPTS =
|
|
|
|
# Compiler
|
|
CC = gcc -Wall -Werror
|
|
#CC = cc
|
|
|
|
# Linker
|
|
LD = $(CC)
|
|
|
|
# Utility to remove a file
|
|
RM = rm
|
|
|
|
OBJS = main.o my_getopt.o
|
|
|
|
copy: $(OBJS)
|
|
$(LD) -o $@ $(OBJS)
|
|
|
|
clean:
|
|
$(RM) -f copy $(OBJS) *~
|
|
|
|
%.o: %.c getopt.h my_getopt.h
|
|
$(CC) $(CCOPTS) -o $@ -c $<
|