#
# $Id: Makefile 1699 2008-08-16 14:31:41Z owes $
#


HEADERS = arch_defs.h common.h
SRC_HELP = helper.c
OBJS_INST = installer.o helper.o helper_newt.o hardware.o language.o partition.o restore.o
LIBS_INST = -ldiscover -lparted -lnewt -lslang -lvolume_id
OBJS_SETUP = setup.o helper.o helper_newt.o hardware.o host_domain.o keymap.o passwords.o timezone.o \
	networking.o net_dhcp.o
LIBS_SETUP = -ldiscover -lnewt -lslang

all: installer setup

installer: $(OBJS_INST) $(HEADERS)
	$(CC) $(CFLAGS) $(OBJS_INST) -o $@ $(LIBS_INST)
	strip $@

setup: $(OBJS_SETUP) $(HEADERS)
	$(CC) $(CFLAGS) $(OBJS_SETUP) -o $@ $(LIBS_SETUP)
	strip $@

helper:$(SRC_HELP)
	$(CC) $(CFLAGS) -c  $< -o $@

%.o : %.c
	$(CC) $(CFLAGS) -c  $< -o $@
